Use this in final_msg so it has no bashisms left and
can be just a Posix shell script
(see https://www.shellcheck.net/wiki/SC2240)
j_factor="$NEXT_J_FACTOR"
fi
-if [ -n "$1" ]; then
- build_host="$1"
- shift
-fi
-if [ -n "$1" ]; then
- build_dir="$1"
- shift
+if [ -z "$_next_common_no_args" ]; then
+ if [ -n "$1" ]; then
+ build_host="$1"
+ shift
+ fi
+ if [ -n "$1" ]; then
+ build_dir="$1"
+ shift
+ fi
fi
export NEXT_BUILD_HOST="${build_host:-none}"
-#!/bin/bash
+#!/bin/sh
tools_dir=$(dirname "$0")
-. "$tools_dir/common.sh" ""
+_next_common_no_args=1 . "$tools_dir/common.sh"
to="Linux Next Mailing List <linux-next@vger.kernel.org>"
cc="Linux Kernel Mailing List <linux-kernel@vger.kernel.org>"