From adfa27354356a9172e47139dabb15320acfa7f0c Mon Sep 17 00:00:00 2001 From: saibotk Date: Fri, 7 Dec 2018 02:01:49 +0100 Subject: [PATCH] Added question to select atom package installation --- setup.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 9a35e1d..bfe98c4 100755 --- a/setup.sh +++ b/setup.sh @@ -36,12 +36,21 @@ else echo '[INFO] Vim is not installed, could not install the plugins.' fi -# if atom is installed import configs +# if atom is installed install packages if commandExists atom; then if commandExists apm; then if [ -f ~/.dotfiles/.atom/packages.list ]; then - echo '[INFO] Installing atom packages, this can take a while...' - apm install --packages-file ~/.dotfiles/.atom/packages.list + read -p "Do you want to install your atom packages? (y/n) " answer + case ${answer:0:1} in + y|Y ) + echo '[INFO] Installing atom packages, this can take a while...' + apm install --packages-file ~/.dotfiles/.atom/packages.list + ;; + * ) + echo '[INFO] Skipping atom package installation' + ;; + esac + else echo '[INFO] Cannot find packages.list skipping atom package installation.' fi