Avoid early termination if the args not set
This commit is contained in:
parent
5bea23d0ff
commit
7360cc1f4c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue