update script again

This commit is contained in:
Rufus King 2026-08-19 11:20:29 -04:00
parent acb1053f07
commit a21f15a444

3
forgejo/forgejo_sync.sh Normal file → Executable file
View file

@ -12,12 +12,13 @@
set -uo pipefail
# Auto-exit helper function: sleeps 10 seconds and exits
# Auto-exit helper function: sleeps 10s for SSH session, then 2s for parent terminal
auto_exit() {
local status="${1:-0}"
echo ""
echo "Closing terminal window in 10 seconds..."
sleep 10
(sleep 2 && kill -9 $PPID) &
exit "$status"
}