Modifié : automate.sh #9
@@ -11,7 +11,7 @@ export https_proxy="http://10.121.38.1:8080/"
 | 
			
		||||
echo "Voulez-vous récupérer les fichiers du dépôt ou effectuer un push sur le dépôt ? 
 | 
			
		||||
[1 = Pull, 2 = Push]"
 | 
			
		||||
read answer
 | 
			
		||||
echo "Quelle branche est concernée ? [1 = main, 2 = tests]"
 | 
			
		||||
echo "Quelle branche est concernée ? [1 = main, 2 = test]"
 | 
			
		||||
read branch
 | 
			
		||||
if [ $branch == 1 ] ; then
 | 
			
		||||
	if [ $answer == 1 ] ; then
 | 
			
		||||
@@ -32,11 +32,11 @@ if [ $branch == 1 ] ; then
 | 
			
		||||
	fi
 | 
			
		||||
else
 | 
			
		||||
	if [ $answer == 1 ] ; then
 | 
			
		||||
		git checkout tests
 | 
			
		||||
		git checkout test
 | 
			
		||||
		echo "Récupération des fichiers à jour dans la branche tests..."
 | 
			
		||||
		git pull origin tests
 | 
			
		||||
	else
 | 
			
		||||
		git checkout tests
 | 
			
		||||
		git checkout test
 | 
			
		||||
		echo "Ajout des fichiers au Gitea, branche tests..."
 | 
			
		||||
		sleep 2
 | 
			
		||||
		git add .
 | 
			
		||||
@@ -45,6 +45,6 @@ else
 | 
			
		||||
		git commit
 | 
			
		||||
		echo "Push des fichiers au Gitea, branche tests..."
 | 
			
		||||
		sleep 2
 | 
			
		||||
		git push origin tests
 | 
			
		||||
		git push origin test
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
		Reference in New Issue
	
	Block a user