Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

29 linhas
655 B

#!/bin/env bash
TEST1=`git status | grep propre | wc -l`
if [ $TEST1 -eq 0 ]
then
	echo "La branche actuelle ($GIT_CURRENT_BRANCH) n'est pas propre"
	echo    # (optional) move to a new line
	read -p "Voulez-vous voir les modifications courantes ? " -n 1 -r
	echo    # (optional) move to a new line
	if [[ $REPLY =~ ^[YyOo]$ ]]
  	then
		git status
	fi
	echo    # (optional) move to a new line
	read -p "Voulez-vous ajouter les modifications courantes ? " -n 1 -r
	echo    # (optional) move to a new line
	if [[ $REPLY =~ ^[YyOo]$ ]]
  	then
		git add .
	fi
fi
TEST2=`git status | grep propre | wc -l`
if [ $TEST1 -eq 1 ]
then
	echo "GIT STATUS OK"
fi