diff options
author | Andrew Shadura <andrew@shadura.me> | 2016-04-29 15:10:59 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2016-04-29 15:10:59 +0200 |
commit | 2cd5070ffbbeddc12b91139b5da59b861924b8e8 (patch) | |
tree | 8c42e82049a7e9b6f65418888d79fad2d2730221 | |
parent | f96303be386754e753507662e916b529f5f0106a (diff) |
Fix bashism (Closes: #772389).
-rw-r--r-- | debian/patches/32-fix-wihack-bashism.patch | 18 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/32-fix-wihack-bashism.patch b/debian/patches/32-fix-wihack-bashism.patch new file mode 100644 index 0000000..7b7646f --- /dev/null +++ b/debian/patches/32-fix-wihack-bashism.patch @@ -0,0 +1,18 @@ +--- a/cmd/wihack.sh ++++ b/cmd/wihack.sh +@@ -7,12 +7,12 @@ + exit 1 + } + +-checkarg='[ ${#@} -gt 0 ] || usage' ++checkarg='[ $# -gt 0 ] || usage' + export WMII_HACK_TIME=$(date +%s) + +-while [ ${#@} -gt 0 ] ++while [ "$1" != "" ] + do +- case $1 in ++ case "$1" in + -transient) + shift; eval $checkarg + export WMII_HACK_TRANSIENT=$1 diff --git a/debian/patches/series b/debian/patches/series index 30ee908..2fc2f82 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -20,3 +20,4 @@ 29-witray-xinerama.patch 30-fix-ftbfs-with-binutils-gold.patch 31-fix-dlopen.patch +32-fix-wihack-bashism.patch |