fix(tag-release): accept no arguments

HEAD should be used as the default value if no value is passed for the
SHA value.
This commit is contained in:
Oliver Davies 2023-05-16 19:55:30 +01:00
parent 97f53b7f49
commit 47e2189487

View file

@ -1,9 +1,5 @@
#!/usr/bin/env bash
if [[ "$1" == "" ]]; then
echo "Usage: ${0##*/} <sha=HEAD>"; exit 2
fi
set -euo pipefail
commit_sha="${1:-HEAD}"