fix early exits

This commit is contained in:
Ray Elliott 2020-09-04 22:15:22 +01:00
parent 1f4bbc6a10
commit 2e51e61da2
1 changed files with 8 additions and 5 deletions

View File

@ -32,7 +32,8 @@ if command -v php ; then
php -r "unlink('composer-setup.php');" php -r "unlink('composer-setup.php');"
fi fi
exit EOSSH
ssh -T $ssh << EOSSH
su "$user" su "$user"
@ -41,12 +42,16 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
echo 'export NVM_DIR="\$HOME/.nvm"' >> "$_home_dir/.profile" echo 'export NVM_DIR="\$HOME/.nvm"' >> "$_home_dir/.profile"
echo '[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"' >> "$_home_dir/.profile" echo '[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"' >> "$_home_dir/.profile"
exit EOSSH
ssh -T $ssh << EOSSH
su --login "$user" su --login "$user"
. ./.profile . ./.profile
nvm install --lts --latest-npm nvm install --lts --latest-npm
exit EOSSH
ssh -T $ssh << EOSSH
su --login "$user" su --login "$user"
. ./.profile . ./.profile
echo "Configuring neovim ..." echo "Configuring neovim ..."
@ -59,8 +64,6 @@ curl -fLo $_home_dir/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim --headless +PlugInstall +qall nvim --headless +PlugInstall +qall
# TODO wakatime api key
echo "Configuring lf .." echo "Configuring lf .."
lf config lf config
if [ -e "$_home_dir/.config/lf" ] ; then if [ -e "$_home_dir/.config/lf" ] ; then