202511211253

This commit is contained in:
Thibaud
2025-11-21 12:53:49 +01:00
parent ac3003b23e
commit 8483b06342
2 changed files with 12 additions and 5 deletions
+5 -2
View File
@@ -2,6 +2,9 @@
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
View File
@@ -1,7 +1,7 @@
#!/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
echo "La branche actuelle ($GIT_CURRENT_BRANCH) n'est pas propre"
@@ -20,6 +20,10 @@ then
then
git add .
fi
else
fi
TEST2=`git status | grep propre | wc -l`
if [ $TEST1 -eq 1 ]
then
echo "GIT STATUS OK"
fi