diff --git a/pkg/universe.dagger.io/netlify/deploy.sh b/pkg/universe.dagger.io/netlify/deploy.sh index 85f5034b..164a3074 100755 --- a/pkg/universe.dagger.io/netlify/deploy.sh +++ b/pkg/universe.dagger.io/netlify/deploy.sh @@ -15,6 +15,7 @@ create_site() { # shellcheck disable=SC2181 if [ $? -ne 0 ]; then + >&2 echo "Error creating site [${NETLIFY_SITE_NAME}] for account [${NETLIFY_ACCOUNT}]" cat body >&2 exit 1 fi @@ -47,7 +48,7 @@ netlify link --id "$site_id" netlify deploy \ --build \ --site="$site_id" \ - --prodIfUnlocked | + --prod | tee /tmp/stdout url="$(grep ]+' | head -1)"