From 0316a0197503600db556ea92d5888b7fe49e76c9 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 19 Sep 2018 17:02:10 -0600 Subject: [PATCH] changed unused logFile vars to /dev/null to avoid 'ambiguous redirect' --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 5ac58f9..ac1e41a 100755 --- a/backup.sh +++ b/backup.sh @@ -136,13 +136,13 @@ fi if [ "$logLevel" = "normal" ]; then borgCreateParams='--stats' borgPruneParams="--list" - unset logFileVerbose + logFileVerbose="/dev/null" logFileNormal="$logFile" elif [ "$logLevel" = "verbose" ]; then borgCreateParams='--list --stats' borgPruneParams='--list' logFileVerbose="$logFile" - unset logFileNormal + logFileNormal="/dev/null" fi