Skip to content

Commit

Permalink
Skip gpg signing if .sig file is already there
Browse files Browse the repository at this point in the history
Fix bazelbuild#1990

--
MOS_MIGRATED_REVID=137262738
  • Loading branch information
meteorcloudy authored and laszlocsomor committed Oct 27, 2016
1 parent 43237e4 commit 6a3565e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,13 @@ function bazel_release() {
else
local destfile=${tmpdir}/$filename-${platform}
fi
mv $file $destfile
checksum $destfile > $destfile.sha256
rm -f "$destfile.sig"
gpg --no-tty --detach-sign -u "${APT_GPG_KEY_ID}" "$destfile"
# bazel.tar.gz is duplicated under different platforms
# if the file is already there, skip signing and checksum it again.
if [ ! -f "$destfile" ]; then
mv $file $destfile
checksum $destfile > $destfile.sha256
gpg --no-tty --detach-sign -u "${APT_GPG_KEY_ID}" "$destfile"
fi
fi
done
done
Expand Down

0 comments on commit 6a3565e

Please sign in to comment.