From 9a898df1cd2e75ed5cc9ad58aaf30965a9cd58e1 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Thu, 14 Apr 2022 10:30:23 +0200 Subject: [PATCH] Ports: Fix issue with the patches directory being a symlink The path of the temporary directory should be an absolute path to account for the patches directory being a symlink like in the upcoming LLVM port update. --- Ports/.port_include.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 8248485e9d3..7341cad119b 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -630,15 +630,15 @@ do_generate_patch_readme() { fi fi - rm -fr .patches.tmp - mkdir .patches.tmp + local tempdir="$(pwd)/.patches.tmp" + rm -fr "$tempdir" + mkdir "$tempdir" echo "# Patches for $port on SerenityOS" > patches/ReadMe.md echo >> patches/ReadMe.md pushd patches - local tempdir="../.patches.tmp" local count=0 for patch in *.patch; do git mailinfo \