File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ restore-secret "Actions Launch token oauth cert" "actions-oauth-s2s-signing-cert
88
88
# Restore storage container prefix, but only if the `-c` option is used with ghe-restore to avoid staging instances using production bucket settings
89
89
# This value will only be present in backups from versions >= 3.10 so needs to be wrapped in version checks.
90
90
if [ -n " $GHE_RESTORE_SNAPSHOT_PATH " ]; then
91
- snapshot_version=$( cat $GHE_RESTORE_SNAPSHOT_PATH /version)
91
+ snapshot_version=$( cat " $GHE_RESTORE_SNAPSHOT_PATH /version" )
92
92
# shellcheck disable=SC2046 # Word splitting is required to populate the variables
93
- read -r snapshot_version_major snapshot_version_minor _ <<< $( ghe_parse_version $snapshot_version )
94
- if [ " $snapshot_version_major " -eq " 3" -a " $snapshot_version_minor " -ge " 10" -a $RESTORE_SETTINGS ]; then
93
+ read -r snapshot_version_major snapshot_version_minor _ <<< $( ghe_parse_version " $snapshot_version " )
94
+ if [[ " $snapshot_version_major " -eq " 3" && " $snapshot_version_minor " -ge " 10" && $RESTORE_SETTINGS ] ]; then
95
95
restore-secret " Actions storage container prefix" " actions-storage-container-prefix" " secrets.actions.storage.container-prefix"
96
96
fi
97
97
fi
You can’t perform that action at this time.
0 commit comments