Add blind-update.sh

This commit is contained in:
Tom Wiesing 2020-10-19 14:25:13 +02:00
parent 29bb2d6003
commit 148a8b110c
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/bin/bash
set -e
# read the lib/shared.sh and read the slug argument.
DISABLE_LOG=1
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
source "$DIR/lib/lib.sh"
DISABLE_LOG=0
# update all the instances
for slug in $(sql_bookkeep_list_updateable); do
log_info "=> /bin/bash $DIR/blind-update.sh '$slug'"
/bin/bash "$DIR/blind-update.sh" "$slug";
done