aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-07 19:56:36 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-07 19:56:36 +0100
commit33f8632d7ac19cfc85acdd1483f4144816912462 (patch)
treec317703f96b21ede9bcb7bcd38f4dbfa279892fb
parentfix some bash trickery (diff)
downloadsetup-wireguard-33f8632d7ac19cfc85acdd1483f4144816912462.tar.gz
setup-wireguard-33f8632d7ac19cfc85acdd1483f4144816912462.zip
fix a typo
-rw-r--r--action.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/action.yml b/action.yml
index 7c9d685..f276af5 100644
--- a/action.yml
+++ b/action.yml
@@ -141,21 +141,21 @@ runs:
listen-port "$port" \
private-key "$private_key_path"
- additionnal_wg_args=()
+ additional_wg_args=()
if [ -n "$preshared_key" ]; then
- additionnal_wg_args+=(preshared-key "${preshared_key_path}")
+ additional_wg_args+=(preshared-key "${preshared_key_path}")
fi
if [ -n "$keepalive" ]; then
- additionnal_wg_args+=(persistent-keepalive "${keepalive}")
+ additional_wg_args+=(persistent-keepalive "${keepalive}")
fi
sudo wg set "$ifname" \
peer "$endpoint_public_key" \
endpoint "$endpoint" \
allowed-ips "$allowed_ips" \
- ${additionnal_wg_args[@]+"${additionnal_wg_args[@]}"}
+ ${additional_wg_args[@]+"${additional_wg_args[@]}"}
sudo ip link set "$ifname" up