refactoring: simplified if/else case since the list of supported arch were too long
This commit is contained in:
parent
a03cfd36b8
commit
4be7194a18
|
@ -378,15 +378,18 @@ case "${LH_BINARY_IMAGES}" in
|
||||||
mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install)
|
mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install)
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${LH_ARCHITECTURE}" = "amd64" ] || [ "${LH_ARCHITECTURE}" = "i386" ] || [ "${LH_ARCHITECTURE}" = "powerpc" ]
|
case "${LH_ARCHITECTURE}" in
|
||||||
then
|
amd64|i386|powerpc)
|
||||||
for FILE in binary/isolinux/*.install.g-i
|
for FILE in binary/isolinux/*.install.g-i
|
||||||
do
|
do
|
||||||
mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install.g-i)
|
mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install.g-i)
|
||||||
done
|
done
|
||||||
else
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
rm -f binary/isolinux/*.install.g-i
|
rm -f binary/isolinux/*.install.g-i
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
rm -f binary/isolinux/*.install*
|
rm -f binary/isolinux/*.install*
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue