fix: set correct upload dir

This commit is contained in:
realaravinth 2022-08-15 18:01:41 +05:30
parent b3ee57d042
commit 2abf57d16b
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -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
}