]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
Log to both stderr and stdout
[backup.sh] / backup.sh
index 32bb5795e5aea179075e84b1b09ac0d9a18e8cef..a5cc91570a4455e7f90a258a481f761295070fdb 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -20,6 +20,7 @@ trap die SIGINT SIGTERM
 # Don't start if we're already running
 if [ -e $LOCKFILE ]; then
        echo `date`": $LOCKFILE exists, exiting."
+       echo `date`": $LOCKFILE exists, exiting." >&2
        exit 1
 fi;
 touch $LOCKFILE