From 0e89de67753dfa846af6910188047cfc92706d44 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 21 Feb 2014 16:26:54 +0000 Subject: [PATCH] Simplify build script --- build | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build b/build index bd393e4..c2f4a81 100755 --- a/build +++ b/build @@ -26,24 +26,24 @@ install() { . $1 ( - if ! fetch; then + fetch || { echo "Failed to fetch $1" >> "$top/morpheus.log" exit 1 - fi - if ! unpack; then + } + unpack || { echo "Failed to unpack $1" >> "$top/morpheus.log" exit 1 - fi - if ! patch; then + } + patch || { echo "Failed to patch $1" >> "$top/morpheus.log" exit 1 - fi - if ! build; then + } + build || { echo "Failed to build $1" >> "$top/morpheus.log" exit 1 - fi - if ! install; then + } + install || { echo "Failed to install $1" >> "$top/morpheus.log" exit 1 - fi + } )