cascade: include hostname in session ID to avoid collisions on shared mounts

This commit is contained in:
Levi Neely 2026-05-17 13:20:24 +02:00
parent 033df45ef9
commit c1857f8545
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ die() { printf 'cascade: %s\n' "$*" >&2; exit 1; }
instruction="${1:-}"
[ -z "$instruction" ] && die "instruction required"
id="${2:-cascade-$(date +%s%N)-$$}"
id="${2:-cascade-$(date +%s%N)-$$-$(hostname -s)}"
[ -n "$OLLIE_SESSION_ID" ] && id="${OLLIE_SESSION_ID}__${id}"
kv="name=${id}