From 2e51e61da22fc49194a3255d686a33951a264ca7 Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 4 Sep 2020 22:15:22 +0100 Subject: [PATCH] fix early exits --- scripts/debian10/install-dev-base.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/debian10/install-dev-base.sh b/scripts/debian10/install-dev-base.sh index d5aaf17..c6089ee 100755 --- a/scripts/debian10/install-dev-base.sh +++ b/scripts/debian10/install-dev-base.sh @@ -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