allow pipe to fail

This commit is contained in:
2023-12-13 12:03:37 +01:00
parent 63f8fde8dd
commit 29aa4352fd

View File

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