Avoid early termination if the args not set

This commit is contained in:
Juergen Hoetzel 2020-06-21 13:11:32 +02:00
parent 5bea23d0ff
commit 7360cc1f4c

View file

@ -11,8 +11,8 @@ if [[ -z "${ACCESS_TOKEN}" || -z "${GITEA_URL}" ]];then
exit 1 exit 1
fi fi
github_user="${1}" github_user="${1:-}"
gitea_organization="${2}" gitea_organization="${2:-}"
if [[ -z "${github_user}" || -z "${gitea_organization}" ]]; then if [[ -z "${github_user}" || -z "${gitea_organization}" ]]; then
echo "Usage: $0 github_user gitea_organization" >&2 echo "Usage: $0 github_user gitea_organization" >&2