mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
Avoid declare -g for old bash installs (#462)
This commit is contained in:
parent
a63c067e8d
commit
6e93cdc3f2
1 changed files with 3 additions and 3 deletions
|
|
@ -448,9 +448,6 @@ function parse_flags() {
|
|||
params=$(getopt --longoptions hostname:,api-port:,keys-port: -n $0 -- $0 "$@")
|
||||
[[ $? == 0 ]] || exit 1
|
||||
eval set -- $params
|
||||
declare -g FLAGS_HOSTNAME=""
|
||||
declare -gi FLAGS_API_PORT=0
|
||||
declare -gi FLAGS_KEYS_PORT=0
|
||||
|
||||
while [[ "$#" > 0 ]]; do
|
||||
local flag=$1
|
||||
|
|
@ -495,6 +492,9 @@ function parse_flags() {
|
|||
|
||||
function main() {
|
||||
trap finish EXIT
|
||||
declare FLAGS_HOSTNAME=""
|
||||
declare -i FLAGS_API_PORT=0
|
||||
declare -i FLAGS_KEYS_PORT=0
|
||||
parse_flags "$@"
|
||||
install_shadowbox
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue