summaryrefslogtreecommitdiff
path: root/Ports/.port_include.sh
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-04-14 10:30:23 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-04-23 10:43:32 -0700
commit9a898df1cd2e75ed5cc9ad58aaf30965a9cd58e1 (patch)
tree40c311d3887bb411bc1161c58a9dcf4a4d5fe14d /Ports/.port_include.sh
parente4b7ce33248a415fde8b970c7724c826d475113a (diff)
downloadserenity-9a898df1cd2e75ed5cc9ad58aaf30965a9cd58e1.zip
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.
Diffstat (limited to 'Ports/.port_include.sh')
-rwxr-xr-xPorts/.port_include.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh
index 8248485e9d..7341cad119 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 \