summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2007-09-24 18:11:13 -0300
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:27 +0100
commitea8476d41a331e3f92114f702141b8c08cf9f8a3 (patch)
tree37fda1bf9d202b43a64d65be52961162999192eb /helpers
parentf2734daf0a9519db6b303683d3ac413a20d56e2a (diff)
downloadvyos-live-build-ea8476d41a331e3f92114f702141b8c08cf9f8a3.tar.gz
vyos-live-build-ea8476d41a331e3f92114f702141b8c08cf9f8a3.zip
refactoring: simplified if/else case since the list of supported arch were too long
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_binary_syslinux21
1 files changed, 12 insertions, 9 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index b84523701..77ccc70b8 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -378,15 +378,18 @@ case "${LH_BINARY_IMAGES}" in
mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install)
done
- if [ "${LH_ARCHITECTURE}" = "amd64" ] || [ "${LH_ARCHITECTURE}" = "i386" ] || [ "${LH_ARCHITECTURE}" = "powerpc" ]
- then
- for FILE in binary/isolinux/*.install.g-i
- do
- mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install.g-i)
- done
- else
- rm -f binary/isolinux/*.install.g-i
- fi
+ case "${LH_ARCHITECTURE}" in
+ amd64|i386|powerpc)
+ for FILE in binary/isolinux/*.install.g-i
+ do
+ mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install.g-i)
+ done
+ ;;
+
+ *)
+ rm -f binary/isolinux/*.install.g-i
+ ;;
+ esac
else
rm -f binary/isolinux/*.install*
fi