diff --git a/uberspace-backup.sh b/uberspace-backup.sh index 653ea85..cef315e 100755 --- a/uberspace-backup.sh +++ b/uberspace-backup.sh @@ -80,7 +80,7 @@ while read -r line; do logecho "${RHOST}: Starting backups" - NORDIR=$(echo "$ALLRDIR" | grep -o "|" | wc -l) + NORDIR=$(echo "$ALLRDIR" | grep -o "|" | wc -l || true) NORDIR=$(($NORDIR + 1)) # Loop through all backup sources