fix:
This commit is contained in:
parent
16ae092321
commit
0618f8ec4f
1 changed files with 6 additions and 10 deletions
16
.zshrc
16
.zshrc
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue