Modifié : automate.sh
Modifié : sisr1/README.md
This commit is contained in:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user