aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislas Lange <angristan@pm.me>2020-03-21 15:44:32 +0100
committerStanislas Lange <angristan@pm.me>2020-03-21 15:44:32 +0100
commitf3fd5346c021e93fc1ec863ec8c5f3061bb18419 (patch)
tree495c02de47b7bbe3ce0f6393c024706acd2b543a
parentbf3cccb8fd0bb7ac49b3c9df897be175ee3e282f (diff)
Fix shellcheck
-rw-r--r--.github/workflows/push.yml2
-rw-r--r--wireguard-install.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index e40d06c..7c67b74 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -8,6 +8,6 @@ jobs:
- name: shellcheck
uses: ludeeus/action-shellcheck@0.0.1
env:
- SHELLCHECK_OPTS: -e SC1091
+ SHELLCHECK_OPTS: -e SC1091,SC1117
with:
args: wireguard-install.sh
diff --git a/wireguard-install.sh b/wireguard-install.sh
index 5663a22..aa8283b 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -166,7 +166,7 @@ echo -e "\nHere is your client config file as a QR Code:"
qrencode -t ansiutf8 -l L < "$HOME/$SERVER_WG_NIC-client.conf"
# Check if WireGuard is running
-systemctl is-active --quiet wg-quick@$SERVER_WG_NIC
+systemctl is-active --quiet "wg-quick@$SERVER_WG_NIC"
WG_RUNNING=$?
# Warn user about kernel version mismatch with headers