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
|
if [[ -z "$translation_filepath" ]]; then
|
||||||
translation_filepath="$2"
|
translation_filepath="$2"
|
||||||
|
fi
|
||||||
if [[ "$translation_filepath" =~ .*/.* ]]; then
|
if [[ "$translation_filepath" =~ .*/.* ]]; then
|
||||||
# path, not a name, leave as is
|
# path, not a name, leave as is
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
translation_filepath="/etc/gre-on-wg/$filepath.conf"
|
translation_filepath="/etc/gre-on-wg/$translation_filepath.conf"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
r="$(read_wg_conf "$filepath")"
|
r="$(read_wg_conf "$filepath")"
|
||||||
|
|
Loading…
Reference in a new issue