Add formatting check for shell scripts (#106)

This commit is contained in:
Muhammad Atif Ali
2023-12-16 17:39:08 +03:00
committed by GitHub
parent 1e7f91231c
commit 1e3bd2b04b
18 changed files with 137 additions and 122 deletions

View File

@@ -7,8 +7,9 @@ BOLD='\033[0;1m'
printf "$${BOLD}Logging into Coder...\n\n$${RESET}"
if ! coder list >/dev/null 2>&1; then
set +x; coder login --token="${CODER_USER_TOKEN}" --url="${CODER_DEPLOYMENT_URL}"
if ! coder list > /dev/null 2>&1; then
set +x
coder login --token="${CODER_USER_TOKEN}" --url="${CODER_DEPLOYMENT_URL}"
else
echo "You are already authenticated with coder."
fi