From 3a7c5ae7117dd72cd7747edd1a1b87aa4eeee390 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Tue, 13 Jun 2017 22:37:23 +0200 Subject: [PATCH] patchinstall.sh: Do not use 'readlink -f' to improve compatibility with macOS. --- patches/patchinstall.sh | 2 +- staging/patchinstall.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 9235fea7..6c8b4f6f 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -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)" diff --git a/staging/patchinstall.sh.in b/staging/patchinstall.sh.in index 4eeae007..529bf703 100644 --- a/staging/patchinstall.sh.in +++ b/staging/patchinstall.sh.in @@ -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)"