# script_dir="$HOME/Executables/shell-scripts/updates"
# cd "$script_dir" || return 1
# chmod +x -- *.sh

time_start=$(date '+%s')
mkdir "$time_start"
cd "$time_start" || return 2
log_dir="$PWD"
export log_dir

log_bg() {
  echo "starting update: $1"
  nohup "$script_dir/$1.sh" 2>&1 | ts '%m-%d %H:%M:%S' >"$log_dir/$1-$time_start.log" 2>&1 &
}
