From 7844aff1a838362403b332c3a68d5732a192923a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 3 May 2025 22:45:15 +0300 Subject: [PATCH] Scripts: Silence two shellcheck warnings --- src/scripts/xzdiff.in | 2 +- src/scripts/xzmore.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/xzdiff.in b/src/scripts/xzdiff.in index 179218d9..174347a4 100644 --- a/src/scripts/xzdiff.in +++ b/src/scripts/xzdiff.in @@ -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. diff --git a/src/scripts/xzmore.in b/src/scripts/xzmore.in index c571913f..acfbd7f3 100644 --- a/src/scripts/xzmore.in +++ b/src/scripts/xzmore.in @@ -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