diff --git a/sub_scripts/launcher.sh b/sub_scripts/launcher.sh index 1b14842..1341375 100755 --- a/sub_scripts/launcher.sh +++ b/sub_scripts/launcher.sh @@ -78,13 +78,13 @@ create_temp_backup () { # Check if the snapshot already exist if [ ! -e "$snapshot_path/snap$snap_number" ] then - echo "snap$snap_number doesn't exist, its first creation can be take a little while." >&2 + echo "snap$snap_number doesn't exist, its first creation can takes a little while." >&2 # Create the snapshot. sudo lxc-snapshot --name $lxc_name >> "$test_result" 2>&1 # lxc always creates the first snapshot it can creates. # So if snap1 doesn't exist and you try to create snap2, it will be named snap1. - if [ "$snap_number" == "2" ] && [ ! -e "$snapshot_path/snap1" ] + if [ "$snap_number" == "2" ] && [ ! -e "$snapshot_path/snap2" ] then # Rename snap1 to snap2 sudo mv "$snapshot_path/snap1" "$snapshot_path/snap2"