summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSami Kerola2012-03-18 21:34:09 +0100
committerKarel Zak2012-03-30 16:48:12 +0200
commit8b32e57f290c63685e1325e70006e7a8ba62add2 (patch)
tree967619983cd579b53266db70e060f132a28eeae0 /tools
parentreset: make scripts bourne sh compliant [checkbashisms] (diff)
downloadkernel-qcow2-util-linux-8b32e57f290c63685e1325e70006e7a8ba62add2.tar.gz
kernel-qcow2-util-linux-8b32e57f290c63685e1325e70006e7a8ba62add2.tar.xz
kernel-qcow2-util-linux-8b32e57f290c63685e1325e70006e7a8ba62add2.zip
tools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms]
script checkconfig.sh does not appear to be a /bin/sh script possible bashism in checkconfig.sh line 14 ('function' is useless): function die() { possible bashism in checkconfig.sh line 27 ('((' should be '$(('): while (( "$#" )); do Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkconfig.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/checkconfig.sh b/tools/checkconfig.sh
index 984e72bea..91f7b1c05 100755
--- a/tools/checkconfig.sh
+++ b/tools/checkconfig.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# This script checks for HAVE_ and ENABLE_ macros which are
@@ -11,7 +11,7 @@
#
-function die() {
+die() {
echo "error: $1"
exit 1
}
@@ -24,7 +24,7 @@ config="$srcdir/config.h.in"
shift
-while (( "$#" )); do
+while [ "$#" -ne 0 ]; do
srcfile=$1
shift