diff options
author | EuAndreh <eu@euandre.org> | 2021-06-23 21:08:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-23 21:08:03 -0300 |
commit | b3d30ef402b661e1327e02ed22df0201f019f535 (patch) | |
tree | 5dde0173e89062a3a6b9834717e5ca119c6f306e /aux | |
parent | Fix tests: git grep -l 'sh git-permalink' | xargs sed -i 's|sh git-permalink|... (diff) | |
download | git-permalink-b3d30ef402b661e1327e02ed22df0201f019f535.tar.gz git-permalink-b3d30ef402b661e1327e02ed22df0201f019f535.tar.xz |
aux/workflow/{l10n,manpages}.sh: Fix ShellCheck offenses
Diffstat (limited to 'aux')
-rwxr-xr-x | aux/workflow/l10n.sh | 3 | ||||
-rwxr-xr-x | aux/workflow/manpages.sh | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/aux/workflow/l10n.sh b/aux/workflow/l10n.sh index 81a7d02..ece154e 100755 --- a/aux/workflow/l10n.sh +++ b/aux/workflow/l10n.sh @@ -18,7 +18,8 @@ if [ -z "$LANGS" ]; then exit 2 fi -for f in $(find $@ -not -name '*.en.*'); do +# shellcheck disable=2044 +for f in $(find "$@" -not -name '*.en.*'); do case "$f" in *.en.[1-9].in) manpage "$f" diff --git a/aux/workflow/manpages.sh b/aux/workflow/manpages.sh index 7332d8f..00a53d9 100755 --- a/aux/workflow/manpages.sh +++ b/aux/workflow/manpages.sh @@ -37,7 +37,6 @@ assert "${ACTION:-}" ACTION for f in "$@"; do l="$(echo "$f" | awk -F. '{print $(NF-1)}')" n="$(echo "$f" | awk -F. '{print $NF}')" - en="$(echo "$f" | sed "s/\.$l\./.en./")" case "$ACTION" in html) assert "${OUTDIR:-}" OUTDIR |