From a34dcd03254480927c403d904c0e754802d97b90 Mon Sep 17 00:00:00 2001 From: Hossein Date: Sat, 16 Sep 2023 03:05:34 +0200 Subject: [PATCH] Prepend instdir/program to the PATH in bin/run To avoid problems described in 21cf443235bf6579959988edee325e8332a42f9f, do not change directory. Change-Id: I56590c4728a6505c089a5bc06bed2a31a0cd0362 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156973 Tested-by: Hossein Reviewed-by: Hossein --- bin/run | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/run b/bin/run index b154834c1db5..be78c38d55e6 100755 --- a/bin/run +++ b/bin/run @@ -71,9 +71,8 @@ if uname | grep -i CYGWIN >/dev/null; then exedir=$(cygpath -m "${dir}"/workdir/LinkTarget/Executable) export URE_BOOTSTRAP=file:///$(cygpath -m "${dir}")/instdir/program/fundamental.ini - export PATH=${PATH:+$PATH:}"${dir}"/instdir/program + export PATH="${dir}/instdir/program${PATH:+:$PATH}" SEARCH_PATH="${PATH}" - cd instdir/program elif [ $(uname) = Darwin ]; then