From 84ffed175081292e256ec053ea5ac548e46787f3 Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 22 Jan 2021 19:10:57 +0000 Subject: [PATCH] Ok, it should be fixed now --- .bash_aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index b03d724..88383c7 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -74,10 +74,10 @@ function pullall() { # If it's a git directory, then update it if test -d .git; then - if ["$(grep -c -i ""master"" $dir/.git/config )"] -gt 0; then + if [ "$(grep -c -i ""master"" .git/config )" -gt 0 ]; then echo "$dir is a Git repo. Pulling master branch..." && git checkout master && git pull && echo "" - elif ["$(grep -c -i ""main"" $dir/.git/config )"] -gt 0; then + elif [ "$(grep -c -i ""main"" .git/config )" -gt 0 ]; then echo "$dir is a Git repo. Pulling main branch..." && git checkout main && git pull && echo "" fi else