1111# Show usage and bail with no arguments
1212[ -z " $* " ] && print_usage
1313
14- bm_start " $( basename $0 ) "
14+ bm_start " $( basename " $0 " ) "
1515
1616# Grab host arg
1717GHE_HOSTNAME=" $1 "
@@ -21,22 +21,22 @@ ghe_remote_version_required "$GHE_HOSTNAME"
2121
2222# The snapshot to restore should be set by the ghe-restore command but this lets
2323# us run this script directly.
24- : ${GHE_RESTORE_SNAPSHOT:= current}
24+ : " ${GHE_RESTORE_SNAPSHOT:= current} "
2525
2626# Path to snapshot dir we're restoring from
27- : ${GHE_RESTORE_SNAPSHOT_PATH:= " $GHE_DATA_DIR /current" }
27+ : " ${GHE_RESTORE_SNAPSHOT_PATH:= " $GHE_DATA_DIR /current" } "
2828
2929# Restore encrypted column encryption keying material for GHES 3.7.0 onward
30- if [ " $( version $GHE_REMOTE_VERSION ) " -ge " $( version 3.7.0) " ]; then
31- log_info " Restoring encrypted column encryption keying material"
30+ if [ " $( version " $GHE_REMOTE_VERSION " ) " -ge " $( version 3.7.0) " ]; then
31+ echo " Restoring encrypted column encryption keying material"
3232 restore-secret " encrypted column encryption keying material" " encrypted-column-encryption-keying-material" " secrets.github.encrypted-column-keying-material"
3333fi
3434
3535# Restore encrypted column current encryption key for GHES 3.8.0 onwards
36- if [ " $( version $GHE_REMOTE_VERSION ) " -ge " $( version 3.8.0) " ]; then
37- log_info " Restoring encrypted column current encryption key"
36+ if [ " $( version " $GHE_REMOTE_VERSION " ) " -ge " $( version 3.8.0) " ]; then
37+ echo " Restoring encrypted column current encryption key"
3838 restore-secret " encrypted column current encryption key" " encrypted-column-current-encryption-key" " secrets.github.encrypted-column-current-encryption-key"
3939fi
4040
4141
42- bm_end " $( basename $0 ) "
42+ bm_end " $( basename " $0 " ) "
0 commit comments