Skip to content

Commit dc367e7

Browse files
committed
fixes fallback to hostname from backup.config
1 parent 564132b commit dc367e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/ghe-restore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ while true; do
6363
;;
6464
*)
6565
if [ -n "$1" ]; then
66-
GHE_HOSTNAME="$1"
66+
GHE_RESTORE_HOST="$1"
6767
shift
6868
else
6969
break
@@ -86,7 +86,7 @@ cleanup () {
8686
. "$( dirname "${BASH_SOURCE[0]}" )/../share/github-backup-utils/ghe-backup-config"
8787

8888
# Grab the host arg
89-
GHE_HOSTNAME="${GHE_HOSTNAME:-$GHE_RESTORE_HOST}"
89+
GHE_HOSTNAME="$GHE_RESTORE_HOST"
9090

9191
# Hostname without any port suffix
9292
hostname=$(echo "$GHE_HOSTNAME" | cut -f 1 -d :)

0 commit comments

Comments
 (0)