From fd3272d620e47a93d56a4e9cf93c5308d06ba1f0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 16 Apr 2016 17:48:44 +0200 Subject: backup.sh: Fix possible quoting issue in exclude_mountpoints Signed-off-by: Florian Pritz --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backup.sh') diff --git a/backup.sh b/backup.sh index f79d125..8985acb 100755 --- a/backup.sh +++ b/backup.sh @@ -126,7 +126,7 @@ exclude_mountpoints() { while read line; do local mountpoint=$(echo "$line" | cut -d\ -f2 | sed 's#\040# #g;') - if ! in_array $mountpoint "${includeMountpoints[@]}"; then + if ! in_array "$mountpoint" "${includeMountpoints[@]}"; then if ! in_array_startswith "$mountpoint/" "${excludeMountpoints[@]/%//}"; then error=1 echo "Warning: mountpoint not excluded or included: $mountpoint" >&2 -- cgit v1.2.3-24-g4f1b