Used Carl's super-cool shell script shorthand to source system config file.
[backups/.git] / scripts / cron-pack.sh
index 62c65ad746dcac88e2bb5413ab212694e88bd1db..1594d68e5740316264a4cb21eebed7de6e5efb87 100755 (executable)
@@ -6,10 +6,7 @@ export PATH=$(dirname $0):/bin:/usr/bin:/sbin
 . config.sh
 
 # source the system specific configuration
-if [ -f /etc/lsbackups.conf ]
-then
-  . /etc/lsbackups.conf
-fi 
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
 
 if [ -n "$(find $lastbackupfile -mtime +14)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
   echo "Running backups from cron..."