summaryrefslogtreecommitdiff
path: root/bin/run
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2023-09-16 03:05:34 +0200
committerHossein <hossein@libreoffice.org>2023-09-20 14:23:33 +0200
commita34dcd03254480927c403d904c0e754802d97b90 (patch)
tree54b54ab53a1d69360985ea5a76a36d3f893948db /bin/run
parent6ae1c47fa1033619bf191a0f4228394ff90f5df6 (diff)
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 <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'bin/run')
-rwxr-xr-xbin/run3
1 files changed, 1 insertions, 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