Skip to content

Instantly share code, notes, and snippets.

@otrack
Created February 4, 2021 15:08
Show Gist options
  • Save otrack/b2eb0e38ad7af9d32f9e7cd7dba8eb10 to your computer and use it in GitHub Desktop.
Save otrack/b2eb0e38ad7af9d32f9e7cd7dba8eb10 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
DIR=$(pwd $(dirname "${BASH_SOURCE[0]}"))
SCRIPTS_DIR=${DIR}/csc4102-scripts
ALL_ET=($(cat ${DIR}/list.txt))
for e in ${ALL_ET[@]};
do
echo ${e}
export CSC4102_URLGITLAB="git@gitlabens.imtbs-tsp.eu:${e}/csc4102-projet.git"
if [ ! -d ${e} ];
then
${SCRIPTS_DIR}/seance2.sh
if [ $? -eq 0 ];
then
mkdir -p ${e}
git clone ${CSC4102_URLGITLAB} ${e}/csc4102-projet
fi
else
cd ${e}/csc4102-projet
${SCRIPTS_DIR}/seance3.sh
# git stash
# git checkout sprint1
# git pull
# git show seance3:Modelisation/modelisation.pdf > ${DIR}/suivi/${e}-modelisation.pdf
# git show seance3:Suivi/readme.md > ${DIR}/suivi/${e}-readme.md
cd -
echo "OK"
fi
done
# curl -s --header "PRIVATE-TOKEN: 1TWJkxx8ztB4sWdK_u7A" https://gitlabens.imtbs-tsp.eu/api/v4/projects/${e}%2Fcsc4102-projet/members
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment