forked from amazingfate/help
Replace usage of readlink -f with realpath.
For consistency reasons, the other scripts use the latter. Additionally on macOS/BSD readlink -f option is not available, nor other default tools for canonicalizing paths, so looking for GNU's realpath in the first place is a better bet. Change-Id: I77b82a956f63c66e352a372895cd623f83916168 Reviewed-on: https://gerrit.libreoffice.org/45486 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
@ -193,7 +193,7 @@ if test "${dir}" = "/"; then
|
||||
echo "error: cannot find \"program\" dir from \"$(pwd)\""
|
||||
exit 1
|
||||
fi
|
||||
rootHelpex=$(readlink -f "${rootHelpex}/..")
|
||||
rootHelpex=$(realpath "${rootHelpex}/..")
|
||||
done
|
||||
|
||||
exedir="${rootHelpex}"/workdir/LinkTarget/Executable
|
||||
|
||||
Reference in New Issue
Block a user