From b15ed71325a40759d2512cd49f3a48cb0f9cb740 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Wed, 15 Jun 2016 14:53:32 +0200 Subject: [PATCH] Improve installation script. --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 02839a3..6744c2f 100755 --- a/install.sh +++ b/install.sh @@ -34,8 +34,8 @@ cd $DIR && echo "Current working directory is ${DIR}" echo -n "Downloading dependencies... " -git submodule init &> /dev/null && git submodule update &> /dev/null \ - || $(echo "Failed."; echo "Submodule installation failed."; exit 3) +git submodule update --init &> /dev/null \ + || (echo "Failed."; echo "Submodule installation failed."; exit 3) echo "done." @@ -46,10 +46,8 @@ installIfAvailable zsh installIfAvailable sqlite3 sqlite installIfAvailable tmux installIfAvailable systemctl systemd - -# Install all XDG compatible packages -echo "Installing remaining packages…" -stow -t $HOME pacman git +installIfAvailable pacman +installIfAvailable git if commandAvailable gsettings; then echo "Installing gsettings preferences…"