From 093a5ea99c7b1e1c6d716e1f47adbcf250d62f5e Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Tue, 25 Feb 2020 03:53:19 +0000 Subject: [PATCH] installer: use boolean for clarity Closes: #952930 --- scripts/build/installer_debian-installer | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index 64375e85c..ca51a1403 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -282,25 +282,24 @@ Download_file "${DESTDIR}"/"${VMLINUZ_DI}" ${URL}/${DI_REMOTE_BASE}/${DI_REMOTE_ Download_file "${DESTDIR}"/"${INITRD_DI}" ${URL}/${DI_REMOTE_BASE}/initrd.gz # Downloading graphical-installer -DOWNLOAD_GTK_INSTALLER=0 +DOWNLOAD_GTK_INSTALLER=false if [ "${LB_DEBIAN_INSTALLER_GUI}" = "true" ] then case "${LB_ARCHITECTURES}" in amd64|i386) - DOWNLOAD_GTK_INSTALLER=1 + DOWNLOAD_GTK_INSTALLER=true ;; powerpc) if [ "${LB_DEBIAN_INSTALLER}" = "netboot" ] then - DOWNLOAD_GTK_INSTALLER=1 + DOWNLOAD_GTK_INSTALLER=true fi ;; esac fi -if [ ${DOWNLOAD_GTK_INSTALLER} -eq 1 ] -then +if $DOWNLOAD_GTK_INSTALLER; then mkdir -p "${DESTDIR_GI}" Download_file "${DESTDIR}"/"${VMLINUZ_GI}" ${URL}/${DI_REMOTE_BASE_GTK}/${DI_REMOTE_KERNEL} Download_file "${DESTDIR}"/"${INITRD_GI}" ${URL}/${DI_REMOTE_BASE_GTK}/initrd.gz