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() { upload_dist() {
delete_dir $1 upload_dir="mCaptcha/$1"
delete_dir $upload_dir
pushd $TMP_DIR pushd $TMP_DIR
for file in $TARBALL $TARBALL.asc $TARBALL.sha256 for file in $TARBALL $TARBALL.asc $TARBALL.sha256
do do
curl -v \ curl -v \
-F upload=@$file \ -F upload=@$file \
"$DUMBSERVE_HOST/api/v1/files/upload?path=mCaptcha/$1/" "$DUMBSERVE_HOST/api/v1/files/upload?path=$upload_dir"
done done
popd popd
} }