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