From 8d8c2c180e20b7d2d8c0225356ea3f47eaa85e86 Mon Sep 17 00:00:00 2001 From: ange Date: Sun, 22 Dec 2024 07:11:02 +0000 Subject: [PATCH] fix: crash if password doesn't exist --- manifests/bin/createadmin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/bin/createadmin.sh b/manifests/bin/createadmin.sh index dcefe09..8691667 100755 --- a/manifests/bin/createadmin.sh +++ b/manifests/bin/createadmin.sh @@ -13,7 +13,7 @@ name="$1" scopes="$2" email="$name@$BASE_URL" secret="gitea-$name" -passwd="$(kgseckey "$secret" password)" +passwd="$(kgseckey "$secret" password || true)" if [ -z "$passwd" ]; then passwd="$(openssl rand -hex 32)"