summaryrefslogtreecommitdiff
path: root/components/9990-misc-helpers.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-06-24 22:06:14 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-06-24 22:06:14 +0200
commit068ba718731e7eb6c6ecabcbb2b7f676198a4ac4 (patch)
tree42a92b80a02658a2859d1e7c64748dc710516664 /components/9990-misc-helpers.sh
parent068a359117640b5052e27312c5c51f552c70fa9f (diff)
downloadlive-boot-068ba718731e7eb6c6ecabcbb2b7f676198a4ac4.tar.gz
live-boot-068ba718731e7eb6c6ecabcbb2b7f676198a4ac4.zip
Dropping helper function used in one place only which can be replaced with a simple ls call anyway.
Diffstat (limited to 'components/9990-misc-helpers.sh')
-rwxr-xr-xcomponents/9990-misc-helpers.sh7
1 files changed, 1 insertions, 6 deletions
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