patchinstall.sh: Do not use 'readlink -f' to improve compatibility with macOS.

(cherry picked from commit 3a7c5ae711)
This commit is contained in:
Sebastian Lackner 2017-06-13 22:37:23 +02:00
parent d4aa71ae9d
commit c0525850fc
2 changed files with 2 additions and 2 deletions

View File

@ -1715,7 +1715,7 @@ patchlist="/dev/null"
backend="patch"
# Find location of patches
patchdir="$(dirname "$(readlink -f "$0")")"
patchdir="$(cd "$(dirname "$0")" && pwd)"
if test ! -f "$patchdir/patchinstall.sh"; then
if test -f ./patchinstall.sh; then
patchdir="$(pwd)"

View File

@ -89,7 +89,7 @@ patchlist="/dev/null"
backend="patch"
# Find location of patches
patchdir="$(dirname "$(readlink -f "$0")")"
patchdir="$(cd "$(dirname "$0")" && pwd)"
if test ! -f "$patchdir/patchinstall.sh"; then
if test -f ./patchinstall.sh; then
patchdir="$(pwd)"