From 0b58ca9176c09196db315dd2ab6e6050e1ae3cf9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 21 Dec 2014 13:41:21 +0100 Subject: [PATCH] try to handle more potential errors --- s/preview | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s/preview b/s/preview index 461ef09b7..99414fafd 100755 --- a/s/preview +++ b/s/preview @@ -22,8 +22,8 @@ exit $2 # otherwise function build() { assert_dir $SOURCE cd $SOURCE -[ -z $1 ] || ( git checkout $1 && git submodule update ) -git pull || abort "failed to update source. do you have local changes?" +[ -z $1 ] || git checkout $1 +( git pull && git submodule update ) || abort "failed to update source. do you have local changes?" s/build || abort "build failed." }