lots: shellcheck, streaming stuff, fixes
[distro-setup] / vpn-mail-forward
index f6ff1687cc706f580218822eb454c61fe1cbe8a4..9331d006bddd4657a296f281eca81565b9709a7a 100755 (executable)
@@ -9,7 +9,7 @@ ifname=$1
 shift
 
 # wait up to 10 seconds for the gateway to appear
-for i in in {1..10}; do
+for ((i=0; i<10; i++)); do
   gw=$(/usr/sbin/ip route | sed -rn 's/^default via .* dev (\S+).*/\1/p')
   if [[ $gw ]]; then
     found=true