From c33ec3ffaedf3eb59ab3881f1558a20197d86730 Mon Sep 17 00:00:00 2001 From: hazcod Date: Tue, 12 Oct 2021 09:23:35 +0200 Subject: [PATCH] fix: volume list error --- macbac.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/macbac.sh b/macbac.sh index 0fe3c4c..ea4e4a5 100755 --- a/macbac.sh +++ b/macbac.sh @@ -256,11 +256,7 @@ listStatus() { } listSnapshots() { - declare -a volumes - - while read -r line; do - volumes+=("$line") - done <<< $(getVolumes) + volumes=($(getVolumes)) for volume in "${volumes[@]}"; do # show current volume