aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/wg-quick/freebsd.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wg-quick/freebsd.bash')
-rwxr-xr-xsrc/tools/wg-quick/freebsd.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/wg-quick/freebsd.bash b/src/tools/wg-quick/freebsd.bash
index 72e0bd0..a72353c 100755
--- a/src/tools/wg-quick/freebsd.bash
+++ b/src/tools/wg-quick/freebsd.bash
@@ -64,7 +64,8 @@ parse_options() {
CONFIG_FILE="$1"
if [[ $CONFIG_FILE =~ ^[a-zA-Z0-9_=+.-]{1,15}$ ]]; then
for path in "${CONFIG_SEARCH_PATHS[@]}"; do
- [[ -e $path/$CONFIG_FILE.conf ]] && { CONFIG_FILE="$path/$CONFIG_FILE.conf"; break; }
+ CONFIG_FILE="$path/$1.conf"
+ [[ -e $CONFIG_FILE ]] && break
done
fi
[[ -e $CONFIG_FILE ]] || die "\`$CONFIG_FILE' does not exist"