From 7caee71d4b1e1400eb08eb8dfd613af80a2f5ca8 Mon Sep 17 00:00:00 2001 From: biswaroop1547 Date: Fri, 3 Nov 2023 19:41:04 +0530 Subject: [PATCH 1/2] fix: petals script uuid -> uuidgen cmd --- 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 f62aabb..fcbe259 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-$(uuid)" +tmpdir="${PREM_APPDIR:-.}/petals-$(uuidgen)" cleanup(){ for i in $(jobs -p); do 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 2/2] 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