src/hg/utils/automation/blastz-run-ucsc 1.11

1.11 2009/08/13 23:15:57 hiram
Proper reference to /bin/ls instead of just ls in a system() call to avoid PATH searching
Index: src/hg/utils/automation/blastz-run-ucsc
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/automation/blastz-run-ucsc,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/hg/utils/automation/blastz-run-ucsc	13 May 2009 00:04:56 -0000	1.10
+++ src/hg/utils/automation/blastz-run-ucsc	13 Aug 2009 23:15:57 -0000	1.11
@@ -109,12 +109,12 @@
   # Try to access the given file/dir; if it fails, don't die, just 
   # wait a second, try again.  
   # Scott's blastz-run included a similar trick.  
   my ($file) = @_;
-  my $ret = system("/bin/sh", "-c", "ls -d $file > /dev/null");
+  my $ret = system("/bin/sh", "-c", "/bin/ls -d $file > /dev/null");
   if ($ret != 0) {
     sleep 1;
-    $ret = system("/bin/sh", "-c", "ls -d $file > /dev/null");
+    $ret = system("/bin/sh", "-c", "/bin/ls -d $file > /dev/null");
     sleep 1 if ($ret != 0);
   }
 }