mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 00:07:16 +00:00
static-build: fix nemu static-build
Fix `arch` assignment and define `Dockerfile` variable to avoid usage of unbound variables. fixes #671 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
ee952ee479
commit
dba3ffa3ae
@ -14,6 +14,7 @@ source "${script_dir}/../../scripts/lib.sh"
|
||||
|
||||
config_dir="${script_dir}/../../scripts/"
|
||||
nemu_tar="kata-nemu-static.tar.gz"
|
||||
Dockerfile="Dockerfile"
|
||||
|
||||
if [ $# -ne 0 ];then
|
||||
arch="$1"
|
||||
@ -29,8 +30,7 @@ if [ $# -ne 0 ];then
|
||||
Dockerfile="Dockerfile_cross"
|
||||
;;
|
||||
x86_64) dpkg_arch="amd64"
|
||||
$arch="amd64"
|
||||
Dockerfile="Dockerfile"
|
||||
arch="amd64"
|
||||
;;
|
||||
*) die "$arch is not support for cross compile" ;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user