diff --git a/shell/gh-repo.sh b/shell/gh-repo.sh index af69115..ea31405 100755 --- a/shell/gh-repo.sh +++ b/shell/gh-repo.sh @@ -5,9 +5,10 @@ set -eo pipefail me=$(basename "$0") +dist="dist/${me%.*}" -GH_REPO_ORGS="example" -GH_REPO_DIST="dist/${me%.*}" +GH_REPO_ORGS="${GH_REPO_ORGS:-example}" +GH_REPO_DIST="${GH_REPO_DIST:-$dist}" mkdir -p "${GH_REPO_DIST}" diff --git a/shell/gitea-batchmerge.sh b/shell/gitea-batchmerge.sh old mode 100644 new mode 100755 index d169ff1..af284d3 --- a/shell/gitea-batchmerge.sh +++ b/shell/gitea-batchmerge.sh @@ -4,10 +4,10 @@ set -eo pipefail -GITEA_SERVER=https://gitea.example.com -GITEA_TOKEN=my-private-token -GITEA_USER="gitea" -GITEA_PR_TITLE= +GITEA_SERVER="${GITEA_SERVER:-https://gitea.example.com}" +GITEA_TOKEN="${GITEA_TOKEN:-my-private-token}" +GITEA_USER="${GITEA_USER:-gitea}" +GITEA_PR_TITLE="${GITEA_PR_TITLE:-}" http "${GITEA_SERVER}/api/v1/user" 'Authorization:token '"${GITEA_TOKEN}"''