bin/run |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a34dcd03254480927c403d904c0e754802d97b90
Author:     Hossein <[email protected]>
AuthorDate: Sat Sep 16 03:05:34 2023 +0200
Commit:     Hossein <[email protected]>
CommitDate: Wed Sep 20 14:23:33 2023 +0200

    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 <[email protected]>
    Reviewed-by: Hossein <[email protected]>

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
 

Reply via email to