]> hackdaworld.org Git - outofuni/backup.git/commitdiff
small addon txt
authorhackbard <hackbard@hackdaworld.org>
Sun, 11 Oct 2015 16:01:01 +0000 (18:01 +0200)
committerhackbard <hackbard@hackdaworld.org>
Sun, 11 Oct 2015 16:01:01 +0000 (18:01 +0200)
bin/backupctrl

index 90640d83825c4f623f8f69bd293f058ee36fd1a1..1315f84a4ab43b35fa0363fb5f1c63f6518b0114 100755 (executable)
@@ -36,14 +36,15 @@ function detect() {
                                echo
                                detect
                        else
+                               txt="`grep ^# ~/.backup | cut -d ' ' -f 2-`"
                                if [ -z "`cat ~/.backup | grep ^off`" ]; then
                                        echo
-                                       echo backup activated
+                                       echo backup activated, $txt
                                        echo
                                        detect
                                else
                                        echo
-                                       echo backup rejected
+                                       echo backup rejected, $txt
                                        echo
                                        detect "kill"
                                fi