wisski-cloud-distillery/distillery/blind_update_all.sh
2022-06-27 13:38:33 +02:00

16 lines
394 B
Bash

#!/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