]> git.ozlabs.org Git - next-scripts/blobdiff - do_last_build
cope with doing the merges and build on the same machine
[next-scripts] / do_last_build
index 5f039e44c310181f0526ef8441fae7608fd7a65d..244b2a365adee195a7771017ae73343cc1edc7cf 100755 (executable)
@@ -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
        set -e
 
        echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
@@ -54,8 +57,7 @@ do
        ka=${a%:*}
        ca=${a#*:}
        d=../${ka}_defconfig
-       ##ssh "$build_host" /bin/sh -e <<-EOF
-       ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
+       $cmd <<-EOF
                set -e
 
                echo \$PATH | grep -q "\$HOME/bin" ||