Shellcheck release

This commit is contained in:
Motiejus Jakštys 2021-09-01 09:41:00 +03:00 committed by Motiejus Jakštys
parent 8c00e74df9
commit a265915b21

View File

@ -9,8 +9,9 @@ err() {
git status --porcelain | grep -q "" && git status --porcelain | grep -q "" &&
err "working tree is dirty, commit your changes first." err "working tree is dirty, commit your changes first."
[[ -f sha256sum-* ]] && for file in sha256sum-*; do
err "found artifacts from previous release, delete them first" err "found $file from previous release, delete it first"
done
[[ "$1" =~ ^v([0-9]+)\.([0-9]+)(\.([0-9]+))?$ ]] || \ [[ "$1" =~ ^v([0-9]+)\.([0-9]+)(\.([0-9]+))?$ ]] || \
err "arg1 accepts the following formats: v1.0 v1.0.0" err "arg1 accepts the following formats: v1.0 v1.0.0"