Sfoglia il codice sorgente

202511211253

develop
Thibaud 1 mese fa
parent
commit
8483b06342
2 ha cambiato i file con 12 aggiunte e 5 eliminazioni
  1. +5
    -2
      git_01_quick_commit.sh
  2. +7
    -3
      git_99_status.sh

+ 5
- 2
git_01_quick_commit.sh Vedi File

@ -2,6 +2,9 @@
TIMESTAMP=`date "+%Y%m%d%H%M"` TIMESTAMP=`date "+%Y%m%d%H%M"`
git_99_status.sh
TEST=$(git_99_status.sh)
git commit -m "$TIMESTAMP"
if [ ! "$TEST" = "GIT STATUS OK" ]
then
git commit -m "$TIMESTAMP"
fi

+ 7
- 3
git_99_status.sh Vedi File

@ -1,7 +1,7 @@
#!/bin/env bash #!/bin/env bash
TEST=`git status | grep propre | wc -l`
if [ $TEST -eq 0 ]
TEST1=`git status | grep propre | wc -l`
if [ $TEST1 -eq 0 ]
then then
echo "La branche actuelle ($GIT_CURRENT_BRANCH) n'est pas propre" echo "La branche actuelle ($GIT_CURRENT_BRANCH) n'est pas propre"
@ -20,6 +20,10 @@ then
then then
git add . git add .
fi fi
else
fi
TEST2=`git status | grep propre | wc -l`
if [ $TEST1 -eq 1 ]
then
echo "GIT STATUS OK" echo "GIT STATUS OK"
fi fi

Caricamento…
Annulla
Salva