]> arthur.barton.de Git - backup-script.git/commitdiff
Correctly initialize system array when specific systems are given
authorAlexander Barton <alex@barton.de>
Thu, 28 Apr 2016 09:07:33 +0000 (11:07 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 28 Apr 2016 09:07:33 +0000 (11:07 +0200)
bin/backup-script
bin/backup-status

index 626b5ec916f8028952f310f9a831f93bc050ada9..0b5126660f505d10a2c1a99877f8d2de8b36b177 100755 (executable)
@@ -335,7 +335,7 @@ if [ $# -ge 1 ]; then
                        echo "$NAME: Can' read \"${conf_d}/$s\"!"
                        exit 3
                fi
-               sys="$sys ${conf_d}/$s"
+               sys+=("${conf_d}/$s")
        done
 else
        sys=("${conf_d}/"*)
index 846f916edc6b0f3a078d9fe48200e7c686beae91..c2479466dfe400c14d3bcbe36923e6e29c124bbe 100755 (executable)
@@ -192,7 +192,7 @@ if [ $# -ge 1 ]; then
                        echo "$NAME: Can' read \"${conf_d}/$s\"!"
                        exit 1
                fi
-               sys="$sys ${conf_d}/$s"
+               sys+=("${conf_d}/$s")
        done
 else
        sys=("${conf_d}/"*)