您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 

25 行
584 B

#!/bin/env bash
TEST=`git status | grep propre | wc -l`
if [ $TEST -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
else
	echo "STATUS OK"
fi