close stdin in an attempt to improve builds for deb/ubuntu that tend to hang when...
[build.git] / build.common
index 08b8fea..7acfbb3 100644 (file)
@@ -21,9 +21,8 @@ export PATH=$PATH:/bin:/sbin
 function bin_in_container () {
     lxc=$1; shift
     binary=$1; shift
-    for path in $(echo $PATH | sed -e s,:, ); do
+    for path in $(echo $PATH | sed -e 's,:, ,g' ); do
        [ -f /vservers/$lxc/$path/$binary ] && { echo $path/$binary; return; }
-       [ -f /vservers/$lxc/rootfs/$path/$binary ] && { echo $path/$binary; return; }
     done
     echo bin_in_container_cannot_find_$binary
 }