From 59d6aa36464fe94f42794494d22df6d275367ca8 Mon Sep 17 00:00:00 2001 From: Alan Ivey Date: Thu, 22 Aug 2019 08:49:01 -0400 Subject: [PATCH] Remove extra ']' --- bin/dsnap-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dsnap-sync b/bin/dsnap-sync index f42a306..22ae067 100755 --- a/bin/dsnap-sync +++ b/bin/dsnap-sync @@ -3040,7 +3040,7 @@ verify_snapper_structure () { fi cmd="$ssh btrfs subvolume create $backup_root/$snapper_snapshots 2>/dev/null" ret=$(eval $cmd) - if [ $? -ne 0 ]]; then + if [ $? -ne 0 ]; then printf "${RED}Error: ${MAGENTA}Creation of snapper subvolume ${GREEN}%s${MAGENTA} failed${NO_COLOR}\n" \ "$backup_root/$snapper_snapshots" return 1