From f9b7d5615ae0a9d78afdbd13218f62be98692f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 6 Jan 2012 16:32:12 +0100 Subject: [PATCH] Break on exit-code != 0 --- build.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build.php b/build.php index 0069fed..d8bbded 100755 --- a/build.php +++ b/build.php @@ -26,7 +26,8 @@ EOT; foreach (glob('file/js/*.coffee') as $coffeeFile) { echo $coffeeFile."\n"; - passthru('coffee -cb '.escapeshellarg($coffeeFile)); + passthru('coffee -cb '.escapeshellarg($coffeeFile), $code); + if ($code != 0) exit($code); } echo <<