diff --git a/entrypoint.sh b/entrypoint.sh index 60a1138..cf83943 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -eu; +set -exu; ## ## validate inputs @@ -33,7 +33,7 @@ fi echo '> Login' TOKEN=$(curl https://hub.docker.com/v2/users/login \ - --fail --silent --show-error \ + --fail --verbose --show-error \ --header "Content-Type: application/json" \ --data "{\"username\":\"$PLUGIN_USERNAME\",\"password\":\"$PLUGIN_PASSWORD\"}\"" | jq -r .token) TOKEN_SOURCE=$(echo "$TOKEN" | cut -d. -f2 | base64 -di 2>/dev/null | jq -r .source.type)