From: Chad Horohoe Date: Fri, 8 Apr 2011 05:28:44 +0000 (+0000) Subject: Add quick sanity check before before trying to use the $outDir X-Git-Tag: 1.31.0-rc.0~30973 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=a600b3d79874db6fa99c70a0ca6a51bab454f949;p=lhc%2Fweb%2Fwiklou.git Add quick sanity check before before trying to use the $outDir --- diff --git a/maintenance/hiphop/make b/maintenance/hiphop/make index 2aa0bd1790..3e270f830c 100755 --- a/maintenance/hiphop/make +++ b/maintenance/hiphop/make @@ -54,6 +54,11 @@ class MakeHipHop extends Maintenance { ' --output-dir=' . wfEscapeShellArg( $outDir ) . ' --log=3' ); + # Sanity check, quickly make sure we've got an output directory + if( !is_dir( $outDir ) ) { + $this->error( "No output directory", true ); + } + # Copy the generated C++ files into the source directory for cmake $iter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $outDir ),