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

This commit is contained in:
Sebastian Lackner 2017-06-13 22:37:23 +02:00
parent 3fab2fbed2
commit 3a7c5ae711
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)"