fixes and improvemens
[distro-setup] / brc2
diff --git a/brc2 b/brc2
index 73dc3daaed782cbffc1f3c00e6111a4adc50bb1c..676c5973a760a2c7936cd24c901336a8f09b2727 100644 (file)
--- a/brc2
+++ b/brc2
@@ -1292,7 +1292,9 @@ cheogram-get-logs() {
   adb pull /storage/emulated/0/Download/Cheogram/Backup
   sqlite3 b </a/opt/ceb-tools/schema.sql
   echo "note: the next step took 39 seconds last time i measured"
-  /a/opt/ceb-tools/ceb2sqlgz Backup/iank@fsf.org.ceb <pas | gunzip | sqlite3 b
+  # expected failure: Error: near line 1: in prepare, table accounts has no column named pinned_mechanism (1)
+  # the sql needs an update
+  /a/opt/ceb-tools/ceb2sqlgz Backup/iank@fsf.org.ceb <pas | gunzip | sqlite3 b ||:
   rm -r Backup
 }
 
@@ -1557,6 +1559,11 @@ dsign() {
   done
 }
 
+# set day start for use in other programs.
+# expected to do be in a format like 830, or 800 or 1300.
+ds() {
+  echo $1 >/b/data/daystart
+}
 
 #### begin bitcoin related things
 btc() {