fixed with git diff exit-codes

This commit is contained in:
piecka 2025-03-25 09:52:23 +01:00
parent 9d46dda2f4
commit 625565e787

3
.zshrc
View file

@ -1,3 +1,4 @@
#
# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1
@ -375,7 +376,7 @@ __alias__() {
echo "${CYAN}-- pulled down submodules recursively${NC}"
gUpdateModules() {
if git diff --quiet .; then
if ! git diff --exit-code .; then
echo "${YELLOW}Staging changes...${NC}"
git add . || echo "GIT ADD MISSFUNCTION"
sleep 0.3