From: Juergen Gross Date: Fri, 29 May 2020 18:28:00 +0000 (+0200) Subject: xen/build: fix xen/tools/binfile X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~140 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5e1783880d6948ea5c8fad6dd64af6e44a1e32ab;p=xen.git 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 --- 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