This commit is contained in:
piecka 2025-03-25 09:37:57 +01:00
parent 16ae092321
commit 0618f8ec4f

16
.zshrc
View file

@ -376,32 +376,28 @@ __alias__() {
gUpdateModules() { gUpdateModules() {
if git diff --quiet .; then if git diff --quiet .; then
echo_info "Staging changes..." echo "${YELLOW}Staging changes...${NC}"
git add . git add .
sleep 0.3 sleep 0.3
if git commit -m " update: submodules"; then if git commit -m " update: submodules"; then
echo_info "Changes committed successfully." echo "${CYAN}Changes committed successfully.${NC}"
else else
echo_error "Failed to commit changes." echo "${RED}Failed to commit changes.${NC}"
return 1 return 1
fi fi
else else
echo_info "No changes to commit." echo "${CYAN}No changes to commit.${NC}"
fi fi
} }
gUpdateModules gUpdateModules
if git push; then if git push; then
echo_info "Push successful." echo "${CYAN}Push successful.${NC}"
else else
echo_error "Failed to push changes." echo "${RED}Failed to push changes.${NC}"
return 1 return 1
fi fi
# gUpdateModules
error_log
} }
gwip() { gwip() {