aboutsummaryrefslogtreecommitdiffstats
path: root/qemu
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 /qemu
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>
Diffstat (limited to 'qemu')
-rwxr-xr-xqemu10
1 files changed, 5 insertions, 5 deletions
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