diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-04-16 17:48:44 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-04-16 17:48:44 +0200 |
commit | fd3272d620e47a93d56a4e9cf93c5308d06ba1f0 (patch) | |
tree | cc8885784217911fbd3130ed595be829e8020d1f /backup.sh | |
parent | 78badf802783180feb9bd3b93061128af7ef6adf (diff) | |
download | bin-fd3272d620e47a93d56a4e9cf93c5308d06ba1f0.tar.gz bin-fd3272d620e47a93d56a4e9cf93c5308d06ba1f0.tar.xz |
backup.sh: Fix possible quoting issue in exclude_mountpoints
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'backup.sh')
-rwxr-xr-x | backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |