1
0
mirror of https://git.tukaani.org/xz.git synced 2025-10-05 16:58:17 +00:00

Scripts: Silence two shellcheck warnings

This commit is contained in:
Lasse Collin 2025-05-03 22:45:15 +03:00
parent 4d439aaeed
commit 7844aff1a8
No known key found for this signature in database
GPG Key ID: 38EE757D69184620
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ done
cmp="$cmp --"
for file; do
test "X$file" = X- || <"$file" || exit 2
test "X$file" = X- || true < "$file" || exit 2
done
# xz needs -qQ to ignore warnings like unsupported check type.

View File

@ -58,7 +58,7 @@ if test $# = 0; then
else
FIRST=1
for FILE; do
< "$FILE" || continue
true < "$FILE" || continue
if test $FIRST -eq 0; then
printf "%s--More--(Next file: %s)" "" "$FILE"
stty $cb -echo 2>/dev/null