mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
separate params from eval
This commit is contained in:
parent
c244868359
commit
d19a5afcb8
1 changed files with 2 additions and 1 deletions
|
|
@ -445,7 +445,8 @@ function is_valid_port() {
|
|||
}
|
||||
|
||||
function parse_flags() {
|
||||
eval set -- $(getopt --longoptions hostname:,api-port:,keys-port: -n $0 -- $0 "$@")
|
||||
local params=$(getopt --longoptions hostname:,api-port:,keys-port: -n $0 -- $0 "$@")
|
||||
eval set -- $params
|
||||
declare -g FLAGS_HOSTNAME=""
|
||||
declare -gi FLAGS_API_PORT=0
|
||||
declare -gi FLAGS_KEYS_PORT=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue