]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add: check rechner file exists
authorBastian Dehn <hhaalo@arcor.de>
Wed, 7 Nov 2018 18:51:01 +0000 (19:51 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 7 Nov 2018 18:51:01 +0000 (19:51 +0100)
backup

diff --git a/backup b/backup
index b8eafd9e334e648f71f3cd30cb8444881621c7cf..a2489a51a96facd6d693697af4b182d2481ec720 100755 (executable)
--- a/backup
+++ b/backup
@@ -236,6 +236,11 @@ BackupPathes()
 
 BackupRemotePC()
 {
+       if [ ! -f "rechner" ]; then
+               printf "ERROR: file rechner not exists!\n"
+               exit 1
+       fi
+
        local rech=""
        for rech in $(cat rechner); do
                CreateBackupFolderRemotePC