Added return cd command to pulldots
This commit is contained in:
parent
5d84d50f4e
commit
d4986f436c
@ -148,11 +148,11 @@ function pulldots() {
|
||||
|
||||
# Check if folders are there and if its Master or Main
|
||||
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 && 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
|
||||
echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && echo ""
|
||||
echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && cd && echo ""
|
||||
|
||||
else
|
||||
echo "I can't seem to file any dotfiles folders" && echo ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user