From 7360cc1f4c580273c360f9559bf04d0d702be481 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sun, 21 Jun 2020 13:11:32 +0200 Subject: [PATCH] Avoid early termination if the args not set --- github2gitea-mirror | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github2gitea-mirror b/github2gitea-mirror index 4dd3648..30a6ffe 100755 --- a/github2gitea-mirror +++ b/github2gitea-mirror @@ -11,8 +11,8 @@ if [[ -z "${ACCESS_TOKEN}" || -z "${GITEA_URL}" ]];then exit 1 fi -github_user="${1}" -gitea_organization="${2}" +github_user="${1:-}" +gitea_organization="${2:-}" if [[ -z "${github_user}" || -z "${gitea_organization}" ]]; then echo "Usage: $0 github_user gitea_organization" >&2