From a6f83ccde4aeebc7dd65afb0b176c2480f2b979c Mon Sep 17 00:00:00 2001 From: kquinsland Date: Thu, 24 Jul 2014 12:13:35 -0700 Subject: [PATCH] Update ec2-automate-backup.sh small typo fix. --- ec2-automate-backup/ec2-automate-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ec2-automate-backup/ec2-automate-backup.sh b/ec2-automate-backup/ec2-automate-backup.sh index 23ff703..5b1c0e7 100755 --- a/ec2-automate-backup/ec2-automate-backup.sh +++ b/ec2-automate-backup/ec2-automate-backup.sh @@ -215,7 +215,7 @@ for ebs_selected in $ebs_backup_list; do ec2_snapshot_description="ec2ab_${ebs_selected}_$current_date" ec2_create_snapshot_result=$(ec2-create-snapshot --region $region -d $ec2_snapshot_description $ebs_selected 2>&1) if [[ $? != 0 ]]; then - echo -e "An error occured when running ec2-create-snapshot. The error returned is below:\n$ec2_create_snapshot_result" 1>&2 ; exit 70 + echo -e "An error occurred when running ec2-create-snapshot. The error returned is below:\n$ec2_create_snapshot_result" 1>&2 ; exit 70 else ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 2) fi