diff --git a/scripts/gitlab_release.sh b/scripts/gitlab_release.sh index ecc5f88..6a85d01 100644 --- a/scripts/gitlab_release.sh +++ b/scripts/gitlab_release.sh @@ -51,11 +51,18 @@ main () { echo "# ${NAME} ${VERSION}" - exec_with_dry_run ${FLAGS_dryrun} "release-cli create --name '${NAME}' --description '${BODY}' \ + exec_with_dry_run ${FLAGS_dryrun} "/usr/local/bin/release-cli create --name '${NAME}' --description '${BODY}' \ --tag-name '${VERSION}' --ref '${VERSION}' \ --milestone '${VERSION}' \ ${ASSET}" + return 0 } -[[ "${BASH_SOURCE[0]}" == "${0}" ]] && (main "$@" || exit 1) -[[ "${BASH_SOURCE[0]}" == "" ]] && (main "$@" || exit 1) \ No newline at end of file +[[ "${BASH_SOURCE[0]}" == "${0}" ]] && \ + { + main "$@" && exit 0 || exit 1 + } +[[ "${BASH_SOURCE[0]}" == "" ]] && \ + { + main "$@" && exit 0 || exit 1 + } \ No newline at end of file