aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2025-08-21 18:28:24 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2025-08-21 18:28:24 +0000
commitec32003ec7728032c9b23bff46012f8eb7bd98f4 (patch)
treef0985911efc3af20f5543e127027c88c3be1dad1
parent92c6fdeb971a904907b5be69876ab000781d689c (diff)
downloadlibvirt-routed-subnet-master.tar.gz
libvirt-routed-subnet-master.tar.xz
libvirt-routed-subnet-master.zip
fix shellcheck issuesHEADmaster
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
-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