From 54d0e356525b8b5dfcb5e402b0a479d3e942a3b6 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 3 Nov 2023 14:17:24 +0000 Subject: [PATCH] fix uuid/uuidgen --- cht-petals/setup-petals.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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