Update rclone.sh

This commit is contained in:
2018-01-19 07:12:46 -05:00
parent 95380a96b9
commit 76567bcea5

View File

@@ -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