X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-misc-helpers.sh;h=245e9da1dd18b3b7af550a3436b59f94fdf657c7;hb=068ba718731e7eb6c6ecabcbb2b7f676198a4ac4;hp=7cb276240a6768c4c1a630033a5a7d0848e92627;hpb=068a359117640b5052e27312c5c51f552c70fa9f;p=live-boot-grml.git diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 7cb2762..245e9da 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -2,17 +2,12 @@ #set -e -file_pattern_matches() -{ - [ -e "$1" ] -} - is_live_path() { DIRECTORY="${1}/${LIVE_MEDIA_PATH}" for FILESYSTEM in squashfs ext2 ext3 ext4 xfs dir jffs do - if file_pattern_matches "${DIRECTORY}/"*.${FILESYSTEM} + if ls "${DIRECTORY}/"*.${FILESYSTEM} > /dev/null 2>&1 then return 0 fi