Merge pull request 'Modifié : automate.sh' (#10) from test into main
Reviewed-on: #10
This commit is contained in:
		@@ -33,17 +33,17 @@ if [ $branch == 1 ] ; then
 | 
				
			|||||||
else
 | 
					else
 | 
				
			||||||
	if [ $answer == 1 ] ; then
 | 
						if [ $answer == 1 ] ; then
 | 
				
			||||||
		git checkout test
 | 
							git checkout test
 | 
				
			||||||
		echo "Récupération des fichiers à jour dans la branche tests..."
 | 
							echo "Récupération des fichiers à jour dans la branche test..."
 | 
				
			||||||
		git pull origin tests
 | 
							git pull origin test
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		git checkout test
 | 
							git checkout test
 | 
				
			||||||
		echo "Ajout des fichiers au Gitea, branche tests..."
 | 
							echo "Ajout des fichiers au Gitea, branche test..."
 | 
				
			||||||
		sleep 2
 | 
							sleep 2
 | 
				
			||||||
		git add .
 | 
							git add .
 | 
				
			||||||
		echo "Commit en cours..."
 | 
							echo "Commit en cours..."
 | 
				
			||||||
		sleep 2
 | 
							sleep 2
 | 
				
			||||||
		git commit
 | 
							git commit
 | 
				
			||||||
		echo "Push des fichiers au Gitea, branche tests..."
 | 
							echo "Push des fichiers au Gitea, branche test..."
 | 
				
			||||||
		sleep 2
 | 
							sleep 2
 | 
				
			||||||
		git push origin test
 | 
							git push origin test
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user