summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-02-25 03:53:19 +0000
committerRaphaƫl Hertzog <hertzog@debian.org>2020-03-09 10:58:53 +0000
commit093a5ea99c7b1e1c6d716e1f47adbcf250d62f5e (patch)
treee22e372aa089b5f36404da9a9d52d94eb0748abf /scripts/build
parente5d006cbc080f25fdaaf1345b00cc226ede53cf2 (diff)
downloadvyos-live-build-093a5ea99c7b1e1c6d716e1f47adbcf250d62f5e.tar.gz
vyos-live-build-093a5ea99c7b1e1c6d716e1f47adbcf250d62f5e.zip
installer: use boolean for clarity
Closes: #952930
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/installer_debian-installer9
1 files 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