aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.shellcheckrc2
-rwxr-xr-xqemu10
2 files changed, 7 insertions, 5 deletions
diff --git a/.shellcheckrc b/.shellcheckrc
new file mode 100644
index 0000000..64b9fd7
--- /dev/null
+++ b/.shellcheckrc
@@ -0,0 +1,2 @@
+# SC3043: intended for use with dash or bash, which both have local
+disable=SC3043
diff --git a/qemu b/qemu
index 48bbf39..3ebb55e 100755
--- a/qemu
+++ b/qemu
@@ -78,14 +78,14 @@ node_loop(){
local ret=1
while [ $i -lt 1000 ]; do
$handler $i "$@" || return $ret
- i=$(( $i + 1 ))
+ i=$(( i + 1 ))
ret=0
done
return 2
}
process_gateway(){
- local i=$1
+ local i="$1"
local ifacexml="$2"
local nodexml="$(get_element 'gateway' "$i" "$ifacexml")"
if [ "$nodexml" = "" ] ; then
@@ -104,7 +104,7 @@ process_gateway(){
}
process_host(){
- local i=$1
+ local i="$1"
local ifacexml="$2"
local nodexml="$(get_element 'host' "$i" "$ifacexml")"
if [ "$nodexml" = "" ] ; then
@@ -125,7 +125,7 @@ process_host(){
}
process_route(){
- local i=$1
+ local i="$1"
local ifacexml="$2"
local nodexml="$(get_element 'route' "$i" "$ifacexml")"
if [ "$nodexml" = "" ] ; then
@@ -144,7 +144,7 @@ process_route(){
}
process_iface(){
- local i=$1
+ local i="$1"
local ifacexml="$(get_element 'interface' "$1" "$routingxml")"
if [ "$ifacexml" = "" ] ; then
return 1