fix early exits
This commit is contained in:
parent
1f4bbc6a10
commit
2e51e61da2
|
@ -32,7 +32,8 @@ if command -v php ; then
|
|||
php -r "unlink('composer-setup.php');"
|
||||
fi
|
||||
|
||||
exit
|
||||
EOSSH
|
||||
ssh -T $ssh << EOSSH
|
||||
|
||||
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 '[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"' >> "$_home_dir/.profile"
|
||||
|
||||
exit
|
||||
EOSSH
|
||||
ssh -T $ssh << EOSSH
|
||||
|
||||
su --login "$user"
|
||||
. ./.profile
|
||||
nvm install --lts --latest-npm
|
||||
|
||||
exit
|
||||
EOSSH
|
||||
ssh -T $ssh << EOSSH
|
||||
|
||||
su --login "$user"
|
||||
. ./.profile
|
||||
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
|
||||
nvim --headless +PlugInstall +qall
|
||||
|
||||
# TODO wakatime api key
|
||||
|
||||
echo "Configuring lf .."
|
||||
lf config
|
||||
if [ -e "$_home_dir/.config/lf" ] ; then
|
||||
|
|
Loading…
Reference in New Issue