mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-06-13 09:46:36 +00:00
fix: set correct upload dir
This commit is contained in:
parent
b3ee57d042
commit
2abf57d16b
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user