From ae3e5c7aabac92426abe760e69135bf7188be913 Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Tue, 16 Jan 2018 15:50:43 -0500 Subject: [PATCH] Update rclone.sh --- rclone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclone.sh b/rclone.sh index 1f0d3b6..d6e0232 100644 --- a/rclone.sh +++ b/rclone.sh @@ -33,7 +33,7 @@ function gzipVMbackups { # create the tar and pipe into pigz for multi-threaded gzip tar cf - "${base}" | pigz > "${dir%/}.gz" # if the tar/gzip was successful, delete the backup directory - if [[ $? -eq 0 ]] && [[ -f "${dir%/}.gz" ]]; then + if [ $? -eq 0 ] && [ -f "${dir%/}.gz" ]; then rm -rf "${dir}" fi done