0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Crowdin: add parameter in -F and not in url

Seems to correspond to the examples of https://support.crowdin.com/api/update-file/
This commit is contained in:
Arthur Milchior 2020-08-28 20:41:09 +02:00 committed by Mike Hardy
parent 15a93a09a4
commit 372b2b3115

View File

@ -65,6 +65,7 @@ for i in "${I18N_FILES[@]}"; do
echo "FILE arg is -F \"files[${I18N_FILE_TARGET_NAME}]=@${I18N_FILE_SOURCE_NAME}\" "
curl \
-F "files[${I18N_FILE_TARGET_NAME}]=@${I18N_FILE_SOURCE_NAME}" \
https://api.crowdin.com/api/project/${PROJECT_IDENTIFIER}/update-file?update_option=update_without_changes&key=${CROWDIN_KEY}
-F "update_option=update_without_changes"
https://api.crowdin.com/api/project/${PROJECT_IDENTIFIER}/update-file?key=${CROWDIN_KEY}
fi
done