X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=releng%2Fdoc%2Frelease-helper.sh;h=cbd4f6206407c51575edba60311d798cf636c34b;hp=856182f223704973957a4e7ef887e6e7b8e072cc;hb=5344fb90be3f898b4455acc96870fabdd6326f3f;hpb=30ca6dab0384054fec22139c2e88fbcc31a463cd diff --git a/releng/doc/release-helper.sh b/releng/doc/release-helper.sh index 856182f22..cbd4f6206 100755 --- a/releng/doc/release-helper.sh +++ b/releng/doc/release-helper.sh @@ -114,12 +114,10 @@ case "$action" in ;; esac -if [ ! -d $version ]; then - echo "Version directory '$version' does not exist yet. Please run the 'clone' action first." - exit -1 +if [ -n "$version" ] && [ -d $version ]; then + pushd $version > /dev/null fi -pushd $version > /dev/null case "$action" in branch) for (( i=0; i<${repositoryCount}; i++ )); do @@ -223,6 +221,9 @@ case "$action" in ;; *) echo "Usage: ${self} clone|branch|checkout|fetch|list-tags|pull|push|push-tags|remove-tag|status|tag" + if [ -d $version ]; then + echo "Version directory ('$version') does not exist yet. Please run the 'clone' action first." + fi ;; esac