Remove extra ']'

This commit is contained in:
Alan Ivey
2019-08-22 08:49:01 -04:00
parent 9c804b8370
commit 59d6aa3646

View File

@@ -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