From 2cd5070ffbbeddc12b91139b5da59b861924b8e8 Mon Sep 17 00:00:00 2001 From: Andrew Shadura Date: Fri, 29 Apr 2016 15:10:59 +0200 Subject: Fix bashism (Closes: #772389). --- debian/patches/32-fix-wihack-bashism.patch | 18 ++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 19 insertions(+) create mode 100644 debian/patches/32-fix-wihack-bashism.patch 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 -- cgit v1.2.3