diff options
| author | Michael Stummvoll <michael@stummi.org> | 2013-03-22 10:53:10 +0100 |
|---|---|---|
| committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 13:54:16 +0200 |
| commit | 0f10a899281806360e427b5cfdd0474c8bad2d85 (patch) | |
| tree | 15907d875bcf3b1fe9802b1fe9d3414306da117a /scripts/boot | |
| parent | 947290a2a0c11f6c37283b40d9b7a9ae89fc8a47 (diff) | |
| download | live-boot-0f10a899281806360e427b5cfdd0474c8bad2d85.tar.gz live-boot-0f10a899281806360e427b5cfdd0474c8bad2d85.zip | |
Simplifying if statement in is_live_system function.
Diffstat (limited to 'scripts/boot')
| -rwxr-xr-x | scripts/boot/9990-misc-helpers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
