installer: use boolean for clarity

Closes: #952930
This commit is contained in:
Lyndon Brown 2020-02-25 03:53:19 +00:00 committed by Raphaël Hertzog
parent e5d006cbc0
commit 093a5ea99c
1 changed files with 4 additions and 5 deletions

View File

@ -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