From 5e1783880d6948ea5c8fad6dd64af6e44a1e32ab Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Fri, 29 May 2020 20:28:00 +0200 Subject: [PATCH] xen/build: fix xen/tools/binfile xen/tools/binfile contains a bash specific command (let). This leads to build failures on systems not using bash as /bin/sh. Replace "let SHIFT=$OPTIND-1" by "SHIFT=$((OPTIND-1))". Signed-off-by: Juergen Gross Acked-by: Andrew Cooper Tested-by: Andrew Cooper --- xen/tools/binfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/tools/binfile b/xen/tools/binfile index df0301183f..23099c49bf 100755 --- a/xen/tools/binfile +++ b/xen/tools/binfile @@ -17,7 +17,7 @@ while getopts "ia:" opt; do ;; esac done -let "SHIFT=$OPTIND-1" +SHIFT=$((OPTIND-1)) shift $SHIFT target=$1 -- 2.30.2