From: Johannes Berg Date: Wed, 17 Apr 2013 14:04:42 +0000 (+0200) Subject: backports: fix install script return code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7df10939fa961d7ca16f0313d0891eb07b198035;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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