Merge pull request #71 from cwturley/patch-1

Update ec2-automate-backup-awscli.sh
This commit is contained in:
Colin Johnson 2014-10-21 14:18:28 +00:00
commit f3e0d186e4

View File

@ -208,7 +208,7 @@ for ebs_selected in $ebs_backup_list; do
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo -e "An error occurred 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 else
ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 5) ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 3)
fi fi
create_EBS_Snapshot_Tags create_EBS_Snapshot_Tags
done done