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() {
if git diff --quiet .; then
echo_info "Staging changes..."
echo "${YELLOW}Staging changes...${NC}"
git add .
sleep 0.3
if git commit -m " update: submodules"; then
echo_info "Changes committed successfully."
echo "${CYAN}Changes committed successfully.${NC}"
else
echo_error "Failed to commit changes."
echo "${RED}Failed to commit changes.${NC}"
return 1
fi
else
echo_info "No changes to commit."
echo "${CYAN}No changes to commit.${NC}"
fi
}
gUpdateModules
if git push; then
echo_info "Push successful."
echo "${CYAN}Push successful.${NC}"
else
echo_error "Failed to push changes."
echo "${RED}Failed to push changes.${NC}"
return 1
fi
# gUpdateModules
error_log
}
gwip() {