From 493accd7676823aa175639b70ad31242e6abdbd8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 12 Sep 2013 15:57:33 +0200 Subject: [PATCH] Handle errors right. --- misc/tools/xonotic-map-compiler-autobuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 8ab0f443..fc0c0056 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -175,11 +175,13 @@ buildthemap() pre2spam "$M" "$url$M-$blobhash.pk3" "$REFNAME" "$commithash" | $IRCSPAM || true fi t0=`date +%s` + set +e ( cd ../.. misc/tools/xonotic-map-compiler-optionsfile "data/xonotic-maps.pk3dir/maps/$M" $build_override > "data/xonotic-maps.pk3dir/maps/$M.log" 2>&1 ) status=$? + set -e if ! [ -f "maps/$M.bsp" ]; then echo >>"maps/$M.log" "ERROR: No BSP file" fi -- 2.39.2