From 4f3feb80dd70a9e62097b033dd22f418f0525a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Fri, 24 Jun 2016 15:13:45 +0200 Subject: [PATCH] do not fail the whole installation if one of the package install retries fails --- bunsen/configure_fresh_system | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bunsen/configure_fresh_system b/bunsen/configure_fresh_system index 39432a89..68b7bef7 100755 --- a/bunsen/configure_fresh_system +++ b/bunsen/configure_fresh_system @@ -5,10 +5,15 @@ set -v sudo apt-get update sudo apt-get -y upgrade -for i in `seq 1 3`; - do - sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs icedove icedove-enigmail icedove-sogo-connector gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted wine solaar glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3 - done +install_packages="sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs icedove icedove-enigmail icedove-sogo-connector gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted wine solaar glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3" + +set +e +for i in `seq 1 3`; do + eval $install_packages +done + +set -e +eval $install_packages if [[ -z $DONT_START_TOR ]]; then sudo systemctl enable tor