diff --git a/cht-petals/setup-petals.sh b/cht-petals/setup-petals.sh index fcbe259..e5c824b 100755 --- a/cht-petals/setup-petals.sh +++ b/cht-petals/setup-petals.sh @@ -2,7 +2,7 @@ # Usage: setup-petals.sh [--model-path=] [--dht-prefix=] [--port=] set -eEuo pipefail -tmpdir="${PREM_APPDIR:-.}/petals-$(uuidgen)" +tmpdir="${PREM_APPDIR:-.}/petals-$(uuidgen 2>/dev/null || uuid)" cleanup(){ for i in $(jobs -p); do