From 66b4279dd801852a233f919837436c75d8de4344 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 16 Aug 2021 14:38:42 +0100 Subject: [PATCH] Fix release script to handle no signing ID We now use the file for stuff other than just the signing ID, so the file may be present but with no signing ID: handle this case. --- release.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index af42fe886..6754f18bb 100755 --- a/release.sh +++ b/release.sh @@ -191,7 +191,10 @@ git commit package.json $pkglock -m "$tag" # figure out if we should be signing this release signing_id= if [ -f release_config.yaml ]; then - signing_id=`cat release_config.yaml | python -c "import yaml; import sys; print yaml.load(sys.stdin)['signing_id']"` + result=`cat release_config.yaml | python -c "import yaml; import sys; print yaml.load(sys.stdin)['signing_id']" 2> /dev/null || true` + if [ "$?" -eq 0 ]; then + signing_id=$result + fi fi