From 3bfd78c19c6c718d843b8645499aeb8de63ec4a9 Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Wed, 5 Feb 2014 16:56:26 +0100 Subject: [PATCH] duplicity-backup.sh: Fix quotation issue The if condition was not quoted correctly, leading to an error that a unary operator is expected. This fixes it by quoting the condition correctly, which is already done in the same way for most of the following if conditions. --- duplicity-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 72094c9..75a67a2 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -417,7 +417,7 @@ include_exclude() done # Include/Exclude globbing filelist - if [ $INCEXCFILE != '' ]; then + if [ "$INCEXCFILE" != '' ]; then TMP=" --include-globbing-filelist ""'"$INCEXCFILE"'" INCLUDE=$INCLUDE$TMP fi