]> xenbits.xensource.com Git - xen.git/commitdiff
xen/build: fix xen/tools/binfile
authorJuergen Gross <jgross@suse.com>
Fri, 29 May 2020 18:28:00 +0000 (20:28 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 21:30:14 +0000 (22:30 +0100)
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 <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/tools/binfile

index df0301183fe6c0128c3e663d4eba20e87ab51b97..23099c49bf4d35bd623dcfae3ad125060a670f3a 100755 (executable)
@@ -17,7 +17,7 @@ while getopts "ia:" opt; do
         ;;
     esac
 done
-let "SHIFT=$OPTIND-1"
+SHIFT=$((OPTIND-1))
 shift $SHIFT
 
 target=$1