File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 55gitpath=" $HOME /.local/share/mybash"
66
77cloneMyBash () {
8+ # Check if the dir exists before attempting to clone into it.
9+ if [ -d " $gitpath " ]; then
10+ rm -rf " $gitpath "
11+ fi
812 mkdir -p " $HOME /.local/share" # Only create the dir if it doesn't exist.
913 cd " $HOME " && git clone https://github.com/ChrisTitusTech/mybash.git " $gitpath "
1014}
Original file line number Diff line number Diff line change 55gitpath=" $HOME /.local/share/neovim"
66
77cloneNeovim () {
8+ # Check if the dir exists before attempting to clone into it.
9+ if [ -d " $gitpath " ]; then
10+ rm -rf " $gitpath "
11+ fi
812 mkdir -p " $HOME /.local/share" # Only create the dir if it doesn't exist.
913 cd " $HOME " && git clone https://github.com/ChrisTitusTech/neovim.git " $HOME /.local/share/neovim"
1014}
You can’t perform that action at this time.
0 commit comments