mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +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/"
|
config_dir="${script_dir}/../../scripts/"
|
||||||
nemu_tar="kata-nemu-static.tar.gz"
|
nemu_tar="kata-nemu-static.tar.gz"
|
||||||
|
Dockerfile="Dockerfile"
|
||||||
|
|
||||||
if [ $# -ne 0 ];then
|
if [ $# -ne 0 ];then
|
||||||
arch="$1"
|
arch="$1"
|
||||||
@ -29,8 +30,7 @@ if [ $# -ne 0 ];then
|
|||||||
Dockerfile="Dockerfile_cross"
|
Dockerfile="Dockerfile_cross"
|
||||||
;;
|
;;
|
||||||
x86_64) dpkg_arch="amd64"
|
x86_64) dpkg_arch="amd64"
|
||||||
$arch="amd64"
|
arch="amd64"
|
||||||
Dockerfile="Dockerfile"
|
|
||||||
;;
|
;;
|
||||||
*) die "$arch is not support for cross compile" ;;
|
*) die "$arch is not support for cross compile" ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user