diff --git a/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl b/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl index 8865b4db..9430ffd3 100644 --- a/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl +++ b/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl @@ -1,7 +1,7 @@ #!/usr/bin/env bash ### Connect to Tailscale network -if command -v tailscale > /dev/null && [ {{ .user.TAILSCALE_AUTH_KEY }} != "" ]; then +if command -v tailscale > /dev/null && [ "{{ .user.TAILSCALE_AUTH_KEY }}" != "" ]; then logg info 'Connecting to Tailscale with user-defined authentication key' tailscale up --authkey={{ .user.TAILSCALE_AUTH_KEY }} && logg success 'Connected to Tailscale network' fi