change -eq 1 to -ne 0

To accept non-zero value
This commit is contained in:
Suikan 2021-07-03 08:19:00 +09:00
parent dc1e8ff720
commit b7738a9fd8
4 changed files with 10 additions and 10 deletions

View file

@ -14,7 +14,7 @@ function para_install_msg_common() {
HEREDOC
# In the EFI system, add this mapping
if [ "${ISEFI}" -eq 1 ] ; then
if [ "${ISEFI}" -ne 0 ] ; then
echo "/boot/efi : ${DEV}${EFIPARTITION}"
fi
@ -22,7 +22,7 @@ function para_install_msg_common() {
echo "/ : /dev/mapper/${VGNAME}-${LVROOTNAME}"
# In case of erased storage, add this mapping
if [ "${ERASEALL}" -eq 1 ] ; then
if [ "${ERASEALL}" -ne 0 ] ; then
echo "swap : /dev/mapper/${VGNAME}-${LVSWAPNAME}"
fi