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:
parent
ae50fc51bb
commit
2f031c27c5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user