diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-17 16:04:42 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-17 16:04:42 +0200 |
commit | 7df10939fa961d7ca16f0313d0891eb07b198035 (patch) | |
tree | 1cd6111324916d7e6e719f4ee359ddc5bf013152 /backport | |
parent | 6e254269afb76c52356033f614c4e533cf3cc247 (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-x | backport/scripts/compress_modules.sh | 3 |
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 |