We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471f0b8 commit 564132bCopy full SHA for 564132b
bin/ghe-restore
@@ -62,7 +62,12 @@ while true; do
62
exit 1
63
;;
64
*)
65
- break
+ if [ -n "$1" ]; then
66
+ GHE_HOSTNAME="$1"
67
+ shift
68
+ else
69
+ break
70
+ fi
71
72
esac
73
done
@@ -81,7 +86,7 @@ cleanup () {
81
86
. "$( dirname "${BASH_SOURCE[0]}" )/../share/github-backup-utils/ghe-backup-config"
82
87
83
88
# Grab the host arg
84
-GHE_HOSTNAME="${1:-$GHE_RESTORE_HOST}"
89
+GHE_HOSTNAME="${GHE_HOSTNAME:-$GHE_RESTORE_HOST}"
85
90
91
# Hostname without any port suffix
92
hostname=$(echo "$GHE_HOSTNAME" | cut -f 1 -d :)
0 commit comments