chiark / gitweb /
check-bkp-status.in: Force `sqlite3' output options to be correct.
[rsync-backup] / check-bkp-status.in
index d45c06b94da342b4c0f2ef1fdd072aae8eb2f6d6..75ddf600523b0f8b15a26edada7bba2a1e56a388 100644 (file)
@@ -407,7 +407,7 @@ backup () {
       case $host:$fs in $p) matchp=t; break ;; esac
     done
     case $matchp in nil) return ;; esac
-    when=$(sqlite3 $INDEXDB \
+    when=$(sqlite3 -batch -list -separator \| -noheader $INDEXDB \
       "SELECT MAX(date) FROM idx WHERE host = '$host' AND fs = '$fs';")
     case $when in
       "")