From d518964d6a6e59c79e57ea6a27314aa776f0a3be Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 26 Aug 2013 20:03:37 +0200 Subject: [PATCH] initrd.scripts: improve code style of check_loop if test --- defaults/initrd.scripts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index ea6840f..c573b32 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -528,7 +528,7 @@ get_device_fstype() { } check_loop() { - if [ "${LOOP}" = "" -o ! -e "${CDROOT_PATH}/${LOOP}" ]; then + if [ -z "${LOOP}" ] || [ ! -e "${CDROOT_PATH}/${LOOP}" ]; then bad_msg "Invalid loop location: ${LOOP}" bad_msg "Please export LOOP with a valid location" bad_msg "or reboot and pass a proper loop=..."