From c4988f94928c4f8c9c84739354437f0ecb6e2db5 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 14 May 2024 08:43:26 +0200 Subject: [PATCH] test curl in subshell --- gitea-package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitea-package.sh b/gitea-package.sh index 85092a8..9db820e 100755 --- a/gitea-package.sh +++ b/gitea-package.sh @@ -48,10 +48,11 @@ showSettings() { } uploadArtifact() { - curl -v --output /dev/null --write-out "%{http_code}" \ + cout=$(curl -v --output /dev/null --write-out "%{http_code}" \ --user "$PLUGIN_USER:$PLUGIN_PASSWORD" \ --upload-file "$PLUGIN_FILE_SOURCE" \ - "$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME" + "$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME") + say "Curl output is: $cout" "uploadArtifact" } main() {