First draft of smart-commit.sh
parent
1fc8719cf3
commit
0999b0c46c
@ -0,0 +1,10 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
STATUS=$(git status --porcelain)
|
||||||
|
STATUS_LEN=${#STATUS}
|
||||||
|
if [ $STATUS_LEN = 0 ]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
git add .
|
||||||
|
git commit --verbose # -qm "CI/CD Commit: $(date -Iseconds)"
|
||||||
|
fi
|
Loading…
Reference in New Issue