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:
parent
97f53b7f49
commit
47e2189487
|
@ -1,9 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$1" == "" ]]; then
|
|
||||||
echo "Usage: ${0##*/} <sha=HEAD>"; exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
commit_sha="${1:-HEAD}"
|
commit_sha="${1:-HEAD}"
|
||||||
|
|
Loading…
Reference in a new issue