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:
@@ -32,8 +32,8 @@ fi
|
|||||||
|
|
||||||
# If the haiku image path is a symlink resolve it now (makebootable needs the
|
# If the haiku image path is a symlink resolve it now (makebootable needs the
|
||||||
# path of the actual device path under Linux).
|
# path of the actual device path under Linux).
|
||||||
if which readlink &> /dev/null; then
|
if readlink -f "$imagePath" &> /dev/null; then
|
||||||
normalizedImagePath=$(readlink -e "$imagePath")
|
normalizedImagePath=$(readlink -f "$imagePath")
|
||||||
if [ $normalizedImagePath ]; then
|
if [ $normalizedImagePath ]; then
|
||||||
imagePath="$normalizedImagePath"
|
imagePath="$normalizedImagePath"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user