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
#!/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 <https://www.ladys.computer/about/#lady>
# SPDX-License-Identifier: MPL-2.0
difflen="$(
"${cmd_PRINTF}" '%s\n' "${diff}" |
- "${cmd_WC}" -l
+ "${cmd_WC}" -l |
+ "${cmd_TR}" -d ' \t'
)"
diffend=$((${difflen} - 1))