From 76567bcea50d3c3fb6ace999801226d16cc40fc9 Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Fri, 19 Jan 2018 07:12:46 -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 070ae48..a89a1ad 100755 --- a/rclone.sh +++ b/rclone.sh @@ -26,7 +26,7 @@ function gzipVMbackups { # loop through VM backups and tar/gzip them to single file for dir in /mnt/data-pool/esxi/backups/*/*/; do - if [ ! -z "$dir" ]; + if [ -n "$dir" ]; then # get the folder name of the backup base=$(basename "${dir}") # had to cd into the directoy since tar -C $dir was not working for me with relative path