aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-20 16:30:03 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-20 16:30:03 -0200
commite86c93ccf2d32861af4f6acec536acfbe955a752 (patch)
treea8ecd0122b0f3cb70b71c07cfe35536d8bea782c
parent8dd4ef2309bac2aa9487f43c677312570655cc49 (diff)
downloadkvmx-e86c93ccf2d32861af4f6acec536acfbe955a752.tar.gz
kvmx-e86c93ccf2d32861af4f6acec536acfbe955a752.tar.bz2
Provision: some error handling
-rwxr-xr-xshare/provision/development6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/provision/development b/share/provision/development
index dc06145..51d9ecf 100755
--- a/share/provision/development
+++ b/share/provision/development
@@ -31,9 +31,9 @@ cd
# Dependencies
echo "Installing basic dependencies..."
-sudo sed -i -e "s|main$|main contrib non-free|g" /etc/apt/sources.list
-sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean
-$APT_INSTALL git
+sudo sed -i -e "s|main$|main contrib non-free|g" /etc/apt/sources.list || exit 1
+sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean || exit 1
+$APT_INSTALL git || exit 1
# Tools
if [ ! -e "apps/inception" ]; then