From: Lady Date: Mon, 23 Mar 2026 02:14:51 +0000 (-0400) Subject: Delete spaces from wc output X-Git-Tag: 0.1.0 X-Git-Url: https://git.ladys.computer/HOMEDIR/commitdiff_plain/refs/tags/0.1.0 Delete spaces from wc output Some implementations pad the output of `wc´. It doesn¦t seem to cause any issue, but just to be safe, this code gets rid of any whitespace. Message-type: text/lesml --- diff --git a/sh/githooks/pre-commit.sh b/sh/githooks/pre-commit.sh index 84127c6..863dbb0 100755 --- a/sh/githooks/pre-commit.sh +++ b/sh/githooks/pre-commit.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh -# @(#)🏠📂 HOMEDIR sh/githooks/pre-commit.sh 2026-03-22T02:03:39Z +# @(#)🏠📂 HOMEDIR sh/githooks/pre-commit.sh 2026-03-23T02:14:52Z # SPDX-FileCopyrightText: 2026 Lady # SPDX-License-Identifier: MPL-2.0 @@ -164,7 +164,8 @@ makepatch () { difflen="$( "${cmd_PRINTF}" '%s\n' "${diff}" | - "${cmd_WC}" -l + "${cmd_WC}" -l | + "${cmd_TR}" -d ' \t' )" diffend=$((${difflen} - 1))