Skip to content

Commit

Permalink
fix break and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Oct 5, 2023
1 parent ca9c734 commit 0bc444a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-wireguard/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bc444a

Please sign in to comment.