Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
|
#!/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
|
|
|
fi
|
|
|
|
|
|
TEST2=`git status | grep propre | wc -l`
|
|
|
if [ $TEST1 -eq 1 ]
|
|
|
then
|
|
|
echo "GIT STATUS OK"
|
|
|
fi
|