]> git.ozlabs.org Git - next-scripts/blobdiff - do_build
cope with doing the merges and build on the same machine
[next-scripts] / do_build
index b9dfd96fec1120ed7e1ba3f2539ba20af1b67855..0cb125148fcd4bef5bd141a31923bcb02e7cfc28 100755 (executable)
--- a/do_build
+++ b/do_build
@@ -4,8 +4,11 @@
 
 set -e
 
-###ssh "$build_host" /bin/sh -e <<-EOF
-ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
+cmd="/bin/sh"
+[ "$build_host" ] &&
+       cmd="ssh root@$build_host unshare -n su $(id -u -n)"
+
+$cmd <<-EOF
 
        echo Building on \$(hostname)