Skip to content

Commit 273e272

Browse files
committed
-z "$1" does not work as expected with -u
1 parent 14128f1 commit 273e272

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tag_and_release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
set -euf -o pipefail
33

44
create_tag () {
5-
if [ -z "$1" ]
6-
then
5+
6+
if [ -z ${1+x} ]; then
77
VERSION="unknown"
8-
else
8+
else
99
VERSION=$1
1010
fi
1111

0 commit comments

Comments
 (0)