From: Rudolf Polzer Date: Thu, 12 Sep 2013 13:57:33 +0000 (+0200) Subject: Handle errors right. X-Git-Tag: xonotic-v0.8.0~79 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=493accd7676823aa175639b70ad31242e6abdbd8;p=xonotic%2Fxonotic.git Handle errors right. --- 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