Skip to content

Commit 5052856

Browse files
committed
Sync shell cd with php-src
See: php/php-src@c075546
1 parent 0aa3411 commit 5052856

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/autotools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fi
8383
# Go to project root.
8484
################################################################################
8585

86-
cd $(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd -P)
86+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd -P)" || exit
8787

8888
################################################################################
8989
# Prepare php-src Git repository.

bin/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ debug=0
1414
phpVersionDev="8.5"
1515

1616
# Go to project root.
17-
cd $(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd -P)
17+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd -P)" || exit
1818

1919
while test $# -gt 0; do
2020
if test "$1" = "-h" || test "$1" = "--help"; then

bin/update-patches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phpVersionDev="8.5"
1616
temporaryBranch=cmake-patching
1717

1818
# Go to project root.
19-
cd $(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd -P)
19+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd -P)" || exit
2020

2121
while test $# -gt 0; do
2222
if test "$1" = "-h" || test "$1" = "--help"; then

0 commit comments

Comments
 (0)