#!/usr/bin/env bash
G=/c/Users/decid/Documents/projects/spt-core/.spt/preserved/302/gate-231-a593ece0
# wait for attempt 1 to finish, then archive its files under attempt1-pool-refusal/
while ! grep -q '^end' "$G/status.txt" 2>/dev/null; do sleep 10; done
for f in "$G"/*.log "$G"/*.txt "$G"/driver.out; do [ -f "$f" ] && mv "$f" "$G/attempt1-pool-refusal/"; done
bash "$S_SCRIPT" > "$G/driver.out" 2>&1
