From e18e8242b55943b6868e9ab5ea4548753390a03a Mon Sep 17 00:00:00 2001 From: Daniel Legt Date: Fri, 19 Jan 2024 01:41:52 +0200 Subject: [PATCH] * Fixed slight issue --- gitea/gitea_backup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gitea/gitea_backup.sh b/gitea/gitea_backup.sh index 8cb676f..8031694 100755 --- a/gitea/gitea_backup.sh +++ b/gitea/gitea_backup.sh @@ -25,7 +25,7 @@ backup_from_docker() { log "Gitea backup created successfully." else error "Failed to create Gitea backup." - send_discord_notification "Failed to create Gitea backup." + send_discord_notification "Failed to create Gitea backup." "16711680" exit 1 fi @@ -34,7 +34,7 @@ backup_from_docker() { if [ -z "$BACKUP_FILE" ]; then error "Backup file not found." - send_discord_notification "Backup file not found." + send_discord_notification "Backup file not found." "16711680" exit 1 fi @@ -91,13 +91,13 @@ delete_old_gdrive_backups() { if [ -n "$BACKUP_ID" ]; then gdrive files delete $BACKUP_ID if [ $? -eq 0 ]; then - local MSG_X="Deleted old backup with ID $BACKUP_ID from Google Drive." - log "$MSG_X" - send_discord_notification "$MSG_X" "16776960" + local MSG_X="Deleted old backup with ID ${BACKUP_ID} from Google Drive." + log "${MSG_X}" + send_discord_notification "${MSG_X}" "16776960" else local MSG_X="Failed to delete backup with ID $BACKUP_ID from Google Drive." - log "$MSG_X" - send_discord_notification "$MSG_X" "16711680" + log "${MSG_X}" + send_discord_notification "${MSG_X}" "16711680" fi fi done @@ -128,4 +128,4 @@ delete_old_gdrive_backups # Final message log "Backup process completed." -send_discord_notification "Backup process completed." \ No newline at end of file +send_discord_notification "Backup process completed." "65280" \ No newline at end of file