From 946f6a182e988c7b459108a76c8c149f49cb7eeb Mon Sep 17 00:00:00 2001 From: Robin Adili <robin.adili@inria.fr> Date: Tue, 15 Sep 2020 14:13:26 +0200 Subject: [PATCH] windows zip archive format --- taranduploadall.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/taranduploadall.sh b/taranduploadall.sh index 58bc89c..234ff3b 100755 --- a/taranduploadall.sh +++ b/taranduploadall.sh @@ -4,8 +4,16 @@ projectid=18692 for a in $(ls -1d fbxsdkpy*/) do + if echo $a|grep win + then + # windows + archive=${a//\//}.zip + zip -r ${archive} ${a} + else + # linux archive=${a//\//}.tar.gz tar -cvf ${archive} ${a} - path=$(curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --form "file=@${archive}" "https://gitlab.inria.fr/api/v4/projects/${projectid}/uploads"|jq '.full_path') - echo "https://gitlab.inria.fr${path//\"/}" >> links + fi + path=$(curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --form "file=@${archive}" "https://gitlab.inria.fr/api/v4/projects/${projectid}/uploads"|jq '.full_path') + echo "https://gitlab.inria.fr${path//\"/}" >> links done -- GitLab