Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
chore: Refactor backup and sync logic in update handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed May 24, 2024
1 parent 532d674 commit ddc7b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/update/handler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ update_handler() {
echo "🅃 🄰 🅂 🄺 🅂 :"
echo -e "-Backing up ix-applications dataset\n-Syncing catalog(s)"
echo -e "Please wait for output from both tasks..\n\n"
backup_and_export "$number_of_backups" &
backup_handler --create "$number_of_backups" &
sync_catalog "update" &
wait
elif [[ "$number_of_backups" -ge 1 ]]; then
echo "🅃 🄰 🅂 🄺 :"
echo -e "-Backing up ix-applications dataset\nPlease wait..\n\n"
backup_and_export "$number_of_backups"
backup_handler --create "$number_of_backups"
elif [[ "$sync" == true ]]; then
echo "🅃 🄰 🅂 🄺 :"
echo -e "Syncing Catalog(s)\nThis can take a few minutes, please wait..\n\n"
Expand Down

0 comments on commit ddc7b0f

Please sign in to comment.