Ok, it should be fixed now
This commit is contained in:
parent
1874232f98
commit
84ffed1750
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user