]> andersk Git - moira.git/commitdiff
Check the return value of system() the right way.
authorzacheiss <zacheiss>
Fri, 18 Jan 2002 23:39:08 +0000 (23:39 +0000)
committerzacheiss <zacheiss>
Fri, 18 Jan 2002 23:39:08 +0000 (23:39 +0000)
gen/stellar.gen

index 45a16cfda81048fa11e509fdcae1733c47f2e49f..072def8be26d994e6dfdf687d44e69183486dad8 100755 (executable)
@@ -77,7 +77,7 @@ while (($root_list_id, $hostname) = $sth0->fetchrow_array) {
     close(OUT);
 }
 
-system("cd $outdir && tar cf $outfile .") || exit $MR_OCONFIG;
+system("cd $outdir && tar cf $outfile .") == 0 || exit $MR_OCONFIG;
 
 $dbh->disconnect;
 
This page took 0.042913 seconds and 5 git commands to generate.