Add file existence checks
parent
6669508dbf
commit
67412028ab
|
@ -89,12 +89,12 @@ rvm implode
|
||||||
sudo apt -y purge gnupg2
|
sudo apt -y purge gnupg2
|
||||||
sudo apt -y autoremove
|
sudo apt -y autoremove
|
||||||
|
|
||||||
tac ~/.bashrc | sed '/# Load RVM/,+4 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.bashrc
|
[ -f ~/.bashrc ] && tac ~/.bashrc | sed '/# Load RVM/,+4 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.bashrc
|
||||||
tac ~/.bash_profile | sed '/# Load RVM/,+1 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.bash_profile
|
[ -f ~/.bash_profile ] && tac ~/.bash_profile | sed '/# Load RVM/,+1 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.bash_profile
|
||||||
tac ~/.mkshrc | sed '/\.rvm\/bin/,+2 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.mkshrc
|
[ -f ~/.mkshrc ] && tac ~/.mkshrc | sed '/\.rvm\/bin/,+2 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.mkshrc
|
||||||
tac ~/.profile | sed '/# Load RVM/,+4 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.profile
|
[ -f ~/.profile ] && tac ~/.profile | sed '/# Load RVM/,+4 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.profile
|
||||||
tac ~/.zlogin | sed '/# Load RVM/,+1 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.zlogin
|
[ -f ~/.zlogin ] && tac ~/.zlogin | sed '/# Load RVM/,+1 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.zlogin
|
||||||
tac ~/.zshrc | sed '/\.rvm\/bin/,+2 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.zshrc
|
[ -f ~/.zshrc ] && tac ~/.zshrc | sed '/\.rvm\/bin/,+2 d' | tac > ~/elifkrow; [ -s ~/elifkrow ] && mv ~/elifkrow ~/.zshrc
|
||||||
[ -f ~/elifkrow ] && rm ~/elifkrow
|
[ -f ~/elifkrow ] && rm ~/elifkrow
|
||||||
|
|
||||||
if [ $(cat .setupphase.txt) -eq 7 ]; then
|
if [ $(cat .setupphase.txt) -eq 7 ]; then
|
||||||
|
|
Loading…
Reference in New Issue