Skip to content

Commit

Permalink
Dropping helper function used in one place only which can be replaced…
Browse files Browse the repository at this point in the history
… with a simple ls call anyway.
  • Loading branch information
daniel-baumann committed Jun 24, 2013
1 parent 068a359 commit 068ba71
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/9990-misc-helpers.sh
Expand Up @@ -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
Expand Down

0 comments on commit 068ba71

Please sign in to comment.