From 0a51959c6fd4248b454f7250997fd4f13500fb8a Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 18 Jul 2023 13:20:24 +0200 Subject: [PATCH] copy-firmware: Fix test: unexpected operator dash is the default /bin/sh on Debian based system. ``` dash ./copy-firmware.sh --zstd example ./copy-firmware.sh: 37: test: unexpected operator ``` `=` should be used with the test command for POSIX conformance. Signed-off-by: Benjamin Drung Signed-off-by: Josh Boyer --- copy-firmware.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy-firmware.sh b/copy-firmware.sh index 58eb7e39..a6be8c74 100755 --- a/copy-firmware.sh +++ b/copy-firmware.sh @@ -24,7 +24,7 @@ while test $# -gt 0; do ;; --xz) - if test "$compext" == ".zst"; then + if test "$compext" = ".zst"; then echo "ERROR: cannot mix XZ and ZSTD compression" exit 1 fi @@ -34,7 +34,7 @@ while test $# -gt 0; do ;; --zstd) - if test "$compext" == ".xz"; then + if test "$compext" = ".xz"; then echo "ERROR: cannot mix XZ and ZSTD compression" exit 1 fi