Fixed the command I just Fixed

This commit is contained in:
Phil 2022-02-07 18:38:17 +00:00
parent d4986f436c
commit 2f33170374

View File

@ -148,11 +148,11 @@ function pulldots() {
# Check if folders are there and if its Master or Main # Check if folders are there and if its Master or Main
if [ "$(grep -c -i ""master"" ~/git/dotfiles/.git/config )" -gt 0 ]; then if [ "$(grep -c -i ""master"" ~/git/dotfiles/.git/config )" -gt 0 ]; then
echo "dotfiles Found, Pulling master branch..." && cd ~/git/dotfiles && git checkout master && git pull && cd %% echo "" echo "dotfiles Found, Pulling master branch..." && cd ~/git/dotfiles && git checkout master && git pull && cd ~ %% echo ""
elif [ "$(grep -c -i ""main"" ~/git/dotfiles/.git/config )" -gt 0 ]; then elif [ "$(grep -c -i ""main"" ~/git/dotfiles/.git/config )" -gt 0 ]; then
echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && cd && echo "" echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && cd ~ && echo ""
else else
echo "I can't seem to file any dotfiles folders" && echo "" echo "I can't seem to file any dotfiles folders" && echo ""