projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
068a359
)
Dropping helper function used in one place only which can be replaced with a simple...
author
Daniel Baumann
<mail@daniel-baumann.ch>
Mon, 24 Jun 2013 20:06:14 +0000
(22:06 +0200)
committer
Daniel Baumann
<mail@daniel-baumann.ch>
Mon, 24 Jun 2013 20:06:14 +0000
(22:06 +0200)
components/9990-misc-helpers.sh
patch
|
blob
|
history
diff --git
a/components/9990-misc-helpers.sh
b/components/9990-misc-helpers.sh
index
7cb2762
..
245e9da
100755
(executable)
--- 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