fix: crash if password doesn't exist
All checks were successful
/ deploy (push) Successful in 11s

This commit is contained in:
ange 2024-12-22 07:11:02 +00:00
parent 6fe60b9e57
commit 8d8c2c180e
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -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)"