From e9834e29a9612adfe96c5654e4cf8759d07cfa7b Mon Sep 17 00:00:00 2001 From: Lucas Rangit MAGASWERAN Date: Sat, 19 Feb 2022 17:48:25 +0100 Subject: [PATCH] shellcheck: Double quote WG_INTERFACE to prevent globbing and word splitting. --- connect_to_wireguard_with_token.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect_to_wireguard_with_token.sh b/connect_to_wireguard_with_token.sh index f152b4f..e757b7a 100755 --- a/connect_to_wireguard_with_token.sh +++ b/connect_to_wireguard_with_token.sh @@ -155,7 +155,7 @@ echo -e "${green}OK!${nc}" # just hardcode /etc/resolv.conf to "nameserver 10.0.0.242". echo echo Trying to create the wireguard interface... -wg-quick up $WG_INTERFACE || exit 1 +wg-quick up "$WG_INTERFACE" || exit 1 echo echo -e "${green}The WireGuard interface got created.${nc}