mirror of
https://git.proxmox.com/git/mirror_linux-firmware
synced 2025-08-09 03:39:42 +00:00
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 <benjamin.drung@canonical.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
parent
b602d438fb
commit
0a51959c6f
@ -24,7 +24,7 @@ while test $# -gt 0; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
--xz)
|
--xz)
|
||||||
if test "$compext" == ".zst"; then
|
if test "$compext" = ".zst"; then
|
||||||
echo "ERROR: cannot mix XZ and ZSTD compression"
|
echo "ERROR: cannot mix XZ and ZSTD compression"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -34,7 +34,7 @@ while test $# -gt 0; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
--zstd)
|
--zstd)
|
||||||
if test "$compext" == ".xz"; then
|
if test "$compext" = ".xz"; then
|
||||||
echo "ERROR: cannot mix XZ and ZSTD compression"
|
echo "ERROR: cannot mix XZ and ZSTD compression"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user