Skip to content

Commit

Permalink
add full base dir path to the check file
Browse files Browse the repository at this point in the history
  • Loading branch information
compgeniuses committed Feb 11, 2025
1 parent f58df8d commit 5b890aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageroot/actions/restore-module/70restore_database
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ restore_back_up() {
ls -la

# Check if the backup_paths.txt file exists
if [[ ! -f "$BACKUP_FILE" ]]; then
echo "Error: $BACKUP_FILE not found in $(pwd)"
if [[ ! -f "${BASE_DIR}${BACKUP_FILE}" ]]; then
echo "Error: ${BASE_DIR}${BACKUP_FILE} not found"
exit 1
fi
# Load the backup paths fom file
Expand Down

0 comments on commit 5b890aa

Please sign in to comment.