Fix argument processing logic.
This commit is contained in:
parent
c3b283d51f
commit
4a1d206ce5
1 changed files with 6 additions and 6 deletions
|
@ -109,12 +109,12 @@ up() {
|
|||
|
||||
if [[ -z "$translation_filepath" ]]; then
|
||||
translation_filepath="$2"
|
||||
fi
|
||||
if [[ "$translation_filepath" =~ .*/.* ]]; then
|
||||
# path, not a name, leave as is
|
||||
:
|
||||
else
|
||||
translation_filepath="/etc/gre-on-wg/$filepath.conf"
|
||||
fi
|
||||
translation_filepath="/etc/gre-on-wg/$translation_filepath.conf"
|
||||
fi
|
||||
|
||||
r="$(read_wg_conf "$filepath")"
|
||||
|
|
Loading…
Reference in a new issue