Skip to content
Browse files

Fix bad fd number messages

  • Loading branch information...
1 parent 54dfa0a commit d8cabd3e9a9996ae6323a29f40524a958be5e374 Davor Ocelic committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 bin/coup
View
10 bin/coup
@@ -34,8 +34,8 @@ if ( -d ($_ = "sources/$rev") ) { # Source is here, only update
if ( $update ) {
chdir $_;
print STDERR "CUP $rev\n";
- DEBUG and print "DBG $ENV{PWD}: git pull >& ../../tmp/cup.$rev\n";
- system("git pull >& ../../tmp/cup.$rev");
+ DEBUG and print "DBG $ENV{PWD}: git pull > ../../tmp/cup.$rev 2>&1\n";
+ system("git pull > ../../tmp/cup.$rev 2>&1");
}
}
else { # Need to perform checkout
@@ -45,7 +45,9 @@ else { # Need to perform checkout
system("git clone git://git.icdevgroup.org/interchange $rev > ../tmp/co.$rev 2>&1");
chdir "$rev" or die "Can't chdir $rev ($!)";
- DEBUG and print "DBG $ENV{PWD}: git checkout --track -b '$git_r' > ../../tmp/co.$rev 2>&1";
- system("git checkout --track -b '$git_r'");
+ if (length($git_r)) {
+ DEBUG and print "DBG $ENV{PWD}: git checkout --track -b '$git_r' > ../../tmp/co.$rev 2>&1";
+ system("git checkout --track -b '$git_r'");
+ }
}

0 comments on commit d8cabd3

Please sign in to comment.
Something went wrong with that request. Please try again.