From 0f10a899281806360e427b5cfdd0474c8bad2d85 Mon Sep 17 00:00:00 2001 From: Michael Stummvoll Date: Fri, 22 Mar 2013 10:53:10 +0100 Subject: Simplifying if statement in is_live_system function. --- scripts/boot/9990-misc-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh index fb7c644..8d7943e 100755 --- a/scripts/boot/9990-misc-helpers.sh +++ b/scripts/boot/9990-misc-helpers.sh @@ -10,7 +10,7 @@ is_live_path () then for FILESYSTEM in squashfs ext2 ext3 ext4 xfs dir jffs2 do - if [ "$(echo ${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM})" != "${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM}" ] + if [ -e "${DIRECTORY}/${LIVE_MEDIA_PATH}/"*".${FILESYSTEM}" ] then return 0 fi -- cgit v1.2.3