]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Scripts: Silence two shellcheck warnings
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 3 May 2025 19:45:15 +0000 (22:45 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 24 May 2025 09:07:25 +0000 (12:07 +0300)
src/scripts/xzdiff.in
src/scripts/xzmore.in

index 179218d91f076c811a81a8c34955b40a0fe88730..174347a43e4ba96506f19726ad8c5759b79953e4 100644 (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.
index 80cb1f9e39b210014b599053f0a844fddd50c2dd..fc8b93a35094b8a04c97969a4db3e51a43cadfc4 100644 (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