summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-04-17 16:04:42 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-04-17 16:04:42 +0200
commit7df10939fa961d7ca16f0313d0891eb07b198035 (patch)
tree1cd6111324916d7e6e719f4ee359ddc5bf013152 /backport
parent6e254269afb76c52356033f614c4e533cf3cc247 (diff)
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 <johannes.berg@intel.com>
Diffstat (limited to 'backport')
-rwxr-xr-xbackport/scripts/compress_modules.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/backport/scripts/compress_modules.sh b/backport/scripts/compress_modules.sh
index 31cd1d46..bbf264f4 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