Skip to content

Commit

Permalink
Simplifying if statement in is_live_system function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stummi authored and daniel-baumann committed May 6, 2013
1 parent 947290a commit 0f10a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/boot/9990-misc-helpers.sh
Expand Up @@ -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
Expand Down

0 comments on commit 0f10a89

Please sign in to comment.