summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/32-fix-wihack-bashism.patch18
-rw-r--r--debian/patches/series1
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