Debugging

This commit is contained in:
Stephen Kirby
2023-09-29 16:15:33 +00:00
parent 7300cab976
commit aa849bc42e
2 changed files with 6 additions and 1 deletions

View File

@@ -5,8 +5,12 @@
echo "Logging into Coder..."
echo "SESSION TOKEN : ${CODER_USER_TOKEN}"
echo "DEPLOYMENT URL: ${CODER_DEPLOYMENT_URL}"
echo ""
if ! coder list >/dev/null 2>&1; then
set +x; coder login --token=$CODER_USER_TOKEN --url=$CODER_DEPLOYMENT_URL
set +x; coder login --token="${CODER_USER_TOKEN}" --url="${CODER_DEPLOYMENT_URL}"
else
echo "You are already authenticated with coder"
fi