From debabab34d96f1ef2dd173254562fafd9869ef1a Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 1 Feb 2023 20:26:54 +0000 Subject: [PATCH] Update file run_onchange_after_24-vpn-darwin.tmpl --- .../universal/run_onchange_after_24-vpn-darwin.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_24-vpn-darwin.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_24-vpn-darwin.tmpl index e60224bc..c1bda892 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_24-vpn-darwin.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_24-vpn-darwin.tmpl @@ -22,7 +22,7 @@ if [ ! -d /etc/wireguard ]; then fi ### Add the WireGuard configurations -find "${XDG_CONFIG_HOME:-$HOME/.config}" -type f -name "*.conf" | while read WG_CONF; do +find "${XDG_CONFIG_HOME:-$HOME/.config}/vpn" -mindepth 1 -maxdepth 1 -type f -name "*.conf" | while read WG_CONF; do WG_FILE="$(basename "$WG_CONF")" logg info 'Adding `'"$WG_FILE"'` to /etc/wireguard' sudo cp -f "$WG_CONF" "/etc/wireguard/$WG_FILE"