Skip to content

Commit 1efe22a

Browse files
author
3np
committed
fix: POSIX-shell compatibility
1 parent 9b5a036 commit 1efe22a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm-systemd/network-proxy-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ -n "${network}" ]; then
2626
for ns in "${primary_dns}" "${secondary_dns}" "${primary_dns6}" "${secondary_dns6}"; do
2727
if [ -n "${ns}" ]; then
2828
echo "NS${i}=${ns}"
29-
((i++))
29+
i="$(( i+1 ))"
3030
fi
3131
done
3232
}

0 commit comments

Comments
 (0)