fix break and typo

pull/302/head
aptalca 7 months ago
parent ca9c734e55
commit 0bc444a2c8
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548

@ -22,7 +22,10 @@ fi
unset FAILED
for tunnel in ${WG_CONFS[@]}; do
echo "**** Activating tunnel ${tunnel} ****"
wg-quick up "${tunnel}" || ( echo FAILED="${tunnel}" && break)
if ! wg-quick up "${tunnel}"; then
FAILED="${tunnel}"
break
fi
done
if [[ -z "${FAILED}" ]]; then

Loading…
Cancel
Save