From 8c70f27a93636a14551a928a2510351ea6b4935f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 26 Aug 2013 20:02:45 +0200 Subject: [PATCH] initrd.scripts: improve code style of check_loop --- defaults/initrd.scripts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index df93f54..ea6840f 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -528,11 +528,11 @@ get_device_fstype() { } check_loop() { - if [ "${LOOP}" = '' -o ! -e "${CDROOT_PATH}/${LOOP}" ] - then + if [ "${LOOP}" = "" -o ! -e "${CDROOT_PATH}/${LOOP}" ]; then bad_msg "Invalid loop location: ${LOOP}" - bad_msg 'Please export LOOP with a valid location, or reboot and pass a proper loop=...' - bad_msg 'kernel command line!' + bad_msg "Please export LOOP with a valid location" + bad_msg "or reboot and pass a proper loop=..." + bad_msg "kernel command line" run_shell fi }