Use "readlink -f" which seems to be more portable. Also check whether

invoking it this way works at all; this avoids problems with readlink
programs that don't support the option.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26018 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-06-19 00:23:20 +00:00
parent ae50fc51bb
commit 2f031c27c5
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ fi
# If the haiku image path is a symlink resolve it now (makebootable needs the
# path of the actual device path under Linux).
if which readlink &> /dev/null; then
normalizedImagePath=$(readlink -e "$imagePath")
if readlink -f "$imagePath" &> /dev/null; then
normalizedImagePath=$(readlink -f "$imagePath")
if [ $normalizedImagePath ]; then
imagePath="$normalizedImagePath"
fi