diff --git a/scripts/generate_tag.sh b/scripts/generate_tag.sh index 6ce3ebf..b475c1d 100755 --- a/scripts/generate_tag.sh +++ b/scripts/generate_tag.sh @@ -1,5 +1,11 @@ #!/bin/sh +if [ $# -eq 0 ]; then + echo "No arguments supplied, exiting script" + echo "Please provide tag name as input parameter" + exit 0 +fi + function gerar_tag_master { branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') diff --git a/scripts/set_tag.sh b/scripts/set_tag.sh index dd933d8..639e387 100755 --- a/scripts/set_tag.sh +++ b/scripts/set_tag.sh @@ -1,3 +1,11 @@ +#!/bin/sh + +if [ $# -eq 0 ]; then + echo "No arguments supplied, exiting script" + echo "Please provide tag name as input parameter" + exit 0 +fi + function fetch_settag { git fetch --all -- libgit2 0.21.2