From 317c157dac2e62f8e94d27eaffa3634e5aa47d25 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Fri, 19 Apr 2024 22:22:34 +0200 Subject: [PATCH] fix some typos Signed-off-by: Sam Therapy --- scripts/vendor-and-upload | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/vendor-and-upload b/scripts/vendor-and-upload index ed08360..41090ef 100755 --- a/scripts/vendor-and-upload +++ b/scripts/vendor-and-upload @@ -1,11 +1,11 @@ #!/usr/bin/env bash -set -euo pipefail +set -eo pipefail # These variables should be set per-instance. # PLEASE CHANGE THEM. GITEA_URL="https://git.froth.zone" OWNER="packaging" -USER="oauth2" # Can be unset if $OWNER is your username or changed to your username. +USER="oauth2" # Can be set to your username if you're not using a token. PACKAGER_NAME="portage" PACKAGER_VERSION="deps" @@ -17,9 +17,10 @@ PACKAGER_VERSION="deps" PACKAGE_NAME=$1 PACKAGE_TAG=$2 + if [[ -z "${GITEA_TOKEN}" ]]; then - if [[ -z "${GITHUB_TOKEN}" ]]; then - echo "Please set GITEA_TOKEN." + if [[ -z "${GITHUB_TOKEN}" ]]; then + echo "Please set \$GITEA_TOKEN." exit 1 fi GITEA_TOKEN=${GITHUB_TOKEN}