Modifié : automate.sh

Modifié :         sisr1/README.md
This commit is contained in:
guillaume.emorine
2024-04-29 08:59:32 +02:00
parent 3279125ac8
commit c678d27175
2 changed files with 12 additions and 0 deletions

View File

@@ -15,9 +15,11 @@ echo "Quelle branche est concernée ? [1 = main, 2 = tests]"
read branch
if [ $branch == 1 ] ; then
if [ $answer == 1 ] ; then
git checkout main
echo "Récupération des fichiers à jour, branche main..."
git pull origin main
else
git checkout main
echo "Ajout des fichiers au Gitea..."
sleep 2
git add .
@@ -30,9 +32,11 @@ if [ $branch == 1 ] ; then
fi
else
if [ $answer == 1 ] ; then
git checkout tests
echo "Récupération des fichiers à jour dans la branche tests..."
git pull origin tests
else
git checkout tests
echo "Ajout des fichiers au Gitea, branche tests..."
sleep 2
git add .