fixed with git diff exit-codes
This commit is contained in:
parent
9d46dda2f4
commit
625565e787
1 changed files with 2 additions and 1 deletions
3
.zshrc
3
.zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue