From 21a136afad4d1b04cddc3ff1e105b0fc7e9d8c2c Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sun, 20 Mar 2011 16:16:11 -0400 Subject: prevent over-aggressive error checking in vest script --- vest/dist-vest.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index d17d7de1..80d2471e 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -417,7 +417,8 @@ while (1){ print STDERR "COMMAND:\n$cmd\n"; check_bash_call($cmd); $cmd="sort -nk3 $DIR_FLAG '-t|' $dir/redoutput.$im1 | head -1"; - my $best=check_bash_output("$cmd"); chomp $best; + # sort returns failure even when it doesn't fail for some reason + my $best=unchecked_output("$cmd"); chomp $best; print STDERR "$best\n"; my ($oa, $x, $xscore) = split /\|/, $best; $score = $xscore; @@ -450,7 +451,7 @@ while (1){ my $v = ($ori{$k} + $axi{$k} * $x) / $norm; print W "$k $v\n"; } - check_call("rm -rf $dir/splag.$im1"); + check_call("rm $dir/splag.$im1/*"); $inweights = $finalFile; } $lastWeightsFile = "$dir/weights.$iteration"; -- cgit v1.2.3