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.
This commit is contained in:
Daniel Bertalan 2022-04-14 10:30:23 +02:00 committed by Brian Gianforcaro
parent e4b7ce3324
commit 9a898df1cd
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00

View file

@ -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 \