From 2abf57d16bdd8b502386a9f0953dfd19a50faf4f Mon Sep 17 00:00:00 2001 From: realaravinth Date: Mon, 15 Aug 2022 18:01:41 +0530 Subject: [PATCH] fix: set correct upload dir --- scripts/publish.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 5b9caf09..de7228a3 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -97,14 +97,15 @@ delete_dir() { } upload_dist() { - delete_dir $1 + upload_dir="mCaptcha/$1" + delete_dir $upload_dir pushd $TMP_DIR for file in $TARBALL $TARBALL.asc $TARBALL.sha256 do curl -v \ -F upload=@$file \ - "$DUMBSERVE_HOST/api/v1/files/upload?path=mCaptcha/$1/" + "$DUMBSERVE_HOST/api/v1/files/upload?path=$upload_dir" done popd }