From 2f031c27c5109a84168fa3ddf373903c6726019a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 19 Jun 2008 00:23:20 +0000 Subject: [PATCH] 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 --- build/scripts/build_haiku_image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/build_haiku_image b/build/scripts/build_haiku_image index 0056fa72fb..cb462d6059 100755 --- a/build/scripts/build_haiku_image +++ b/build/scripts/build_haiku_image @@ -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