aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/init-swift.sh2
-rwxr-xr-xtools/run-bashate.sh5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/init-swift.sh b/tests/init-swift.sh
index f0e8bcd4d..c5cfb2856 100755
--- a/tests/init-swift.sh
+++ b/tests/init-swift.sh
@@ -44,7 +44,7 @@ function init_swift_logged {
/etc/kolla/config/swift/$ring.builder
# next ring = next port
- (( next_port++ ))
+ next_port=$((next_port+1))
done
}
diff --git a/tools/run-bashate.sh b/tools/run-bashate.sh
index 897228c81..2a92e960b 100755
--- a/tools/run-bashate.sh
+++ b/tools/run-bashate.sh
@@ -1,7 +1,10 @@
#!/bin/bash
# Ignore E006 -- line length greater than 80 char
+# Error on E005 -- file does not begin with #! or have .sh prefix
+# Error on E042 -- local declaration hides errors
+# Error on E043 -- arithmetic compound has inconsistent return semantics
ROOT=$(readlink -fn $(dirname $0)/.. )
find $ROOT -not -wholename \*.tox/\* -and -not -wholename \*.test/\* \
- -and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006
+ -and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006 --error E005,E042,E043