Skip to content

Commit d18e71b

Browse files
committed
do not expand $PATH when writing
1 parent c3ae7e7 commit d18e71b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/BuildScript/scripts/postflight.patch-profile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ case "${BSH}" in
3636
echo "" >> "${RC}"
3737
echo "# Setting PATH for Python ${PYVER}" >> "${RC}"
3838
echo "# The original version is saved in .cshrc.pysave" >> "${RC}"
39-
echo "set path=(${PYTHON_ROOT}/bin "'$path'")" >> "${RC}"
39+
echo "set path=(${PYTHON_ROOT}/bin "'\$path'")" >> "${RC}"
4040
EOFC
4141

4242
if [ `id -ur` = 0 ]; then
@@ -94,7 +94,7 @@ fi
9494
echo "" >> "${PR}"
9595
echo "# Setting PATH for Python ${PYVER}" >> "${PR}"
9696
echo "# The original version is saved in `basename ${PR}`.pysave" >> "${PR}"
97-
echo 'PATH="'"${PYTHON_ROOT}/bin"':${PATH}"' >> "${PR}"
97+
echo 'PATH="'"${PYTHON_ROOT}/bin"':\${PATH}"' >> "${PR}"
9898
echo 'export PATH' >> "${PR}"
9999
EOFS
100100

0 commit comments

Comments
 (0)