3bfd78c19c6c718d843b8645499aeb8de63ec4a9

Author
Karol Babioch <karol@babioch.de>
Committer
Karol Babioch <karol@babioch.de>
Date

Message

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.

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index 72094c92d32e6be9d7a354ccf599f7b8df998648..75a67a213fce89c7a063bc8a446723faaa860fb9 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -417,7 +417,7 @@ include_exclude()
 6   done
 7   
 8   # Include/Exclude globbing filelist
 9-  if [ $INCEXCFILE != '' ]; then
10+  if [ "$INCEXCFILE" != '' ]; then
11     TMP=" --include-globbing-filelist ""'"$INCEXCFILE"'"
12     INCLUDE=$INCLUDE$TMP
13   fi