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)"