From: Avery Pennarun Date: Mon, 3 Jan 2011 21:12:32 +0000 (-0800) Subject: cmd/import-rsnapshot: fix a bashism (== instead of =). X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=35f02614c206d9b2241272fa64b05348c55f0cf0;p=packages%2Fb%2Fbup.git cmd/import-rsnapshot: fix a bashism (== instead of =). Bug reported by Brandon Low. Signed-off-by: Avery Pennarun --- diff --git a/cmd/import-rsnapshot-cmd.sh b/cmd/import-rsnapshot-cmd.sh index 94db5c1..4ae422a 100755 --- a/cmd/import-rsnapshot-cmd.sh +++ b/cmd/import-rsnapshot-cmd.sh @@ -50,7 +50,7 @@ for SNAPSHOT in "$ABSPATH/"*; do BRANCH=`basename "$BRANCH_PATH"` TMPIDX="/tmp/$BRANCH" - if [ "$TARGET" == "" ] || [ "$TARGET" == "$BRANCH" ]; then + if [ "$TARGET" = "" ] || [ "$TARGET" = "$BRANCH" ]; then bup index -ux \ -f $TMPIDX \ $BRANCH_PATH/