Discard changes to coder-login/run.sh

pull/106/head
Muhammad Atif Ali 2 years ago committed by GitHub
parent b41242ec73
commit a60ebcc39d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,17 +4,11 @@
# logged in to another deployment # logged in to another deployment
BOLD='\033[0;1m' BOLD='\033[0;1m'
RESET='\033[0m'
# Convert templated variables to shell variables
CODER_DEPLOYMENT_URL=${CODER_DEPLOYMENT_URL}
CODER_USER_TOKEN=${CODER_USER_TOKEN}
printf "$${BOLD}Logging into Coder...\n\n$${RESET}" printf "$${BOLD}Logging into Coder...\n\n$${RESET}"
if ! coder list > /dev/null 2>&1; then if ! coder list >/dev/null 2>&1; then
set +x set +x; coder login --token="${CODER_USER_TOKEN}" --url="${CODER_DEPLOYMENT_URL}"
coder login --token="$${CODER_USER_TOKEN}" --url="$${CODER_DEPLOYMENT_URL}"
else else
echo "You are already authenticated with coder." echo "You are already authenticated with coder."
fi fi

Loading…
Cancel
Save