From 9644d52551e34d3a4a8d2f6d61e05470a6fd05df Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Mon, 30 Nov 2015 15:05:06 -0600 Subject: [PATCH] chroot: fix bashism possible bashism in scripts/chroot.sh line 235 (should be 'b = a'): if [ "x${deb_arch}" == "xarmel" ] || [ "x${deb_arch}" == "xarmhf" ] ; then possible bashism in scripts/chroot.sh line 238 (should be 'b = a'): if [ "x${deb_arch}" == "xarm64" ] ; then fixes: https://github.com/RobertCNelson/omap-image-builder/issues/64 Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 792ce26de..4262cec13 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -232,10 +232,10 @@ trap chroot_stopped EXIT check_defines if [ "x${host_arch}" != "xarmv7l" ] && [ "x${host_arch}" != "xaarch64" ] ; then - if [ "x${deb_arch}" == "xarmel" ] || [ "x${deb_arch}" == "xarmhf" ] ; then + if [ "x${deb_arch}" = "xarmel" ] || [ "x${deb_arch}" = "xarmhf" ] ; then sudo cp $(which qemu-arm-static) "${tempdir}/usr/bin/" fi - if [ "x${deb_arch}" == "xarm64" ] ; then + if [ "x${deb_arch}" = "xarm64" ] ; then sudo cp $(which qemu-aarch64-static) "${tempdir}/usr/bin/" fi fi -- GitLab