Skip to content

Commit 1be167b

Browse files
fix is_default_external_database_snapshot function
This function tries to access an argument ($1) but no invocations of this function pass in an argument. The implementation has been changed to rely on variables from the environment which allow it correctly find the appropriate sentinel file.
1 parent c33bf70 commit 1be167b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ is_external_database_snapshot(){
462462
# This file exists if this is a backup for an external database AND the backup was
463463
# taken via our logical backup strategy.
464464
is_default_external_database_snapshot(){
465-
is_external_database_snapshot && test -f "$1/logical-external-database-backup-sentinel"
465+
is_external_database_snapshot && test -f "$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/logical-external-database-backup-sentinel"
466466
}
467467

468468
prompt_for_confirmation(){

0 commit comments

Comments
 (0)