From 7df10939fa961d7ca16f0313d0891eb07b198035 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 17 Apr 2013 16:04:42 +0200 Subject: [PATCH] backports: fix install script return code My "test ... && ..." trick won't work with set -e since then the script will fail, use a proper if. Signed-off-by: Johannes Berg --- backport/scripts/compress_modules.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backport/scripts/compress_modules.sh b/backport/scripts/compress_modules.sh index 31cd1d46dad1..bbf264f4e677 100755 --- a/backport/scripts/compress_modules.sh +++ b/backport/scripts/compress_modules.sh @@ -14,7 +14,8 @@ function mod_filename() echo $(basename "$mod_path") } -test "$(mod_filename mac80211)" = "mac80211.ko.gz" && +if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then for driver in $(find "$1" -type f -name *.ko); do gzip -9 $driver done +fi -- 2.30.2