Skip to content

Commit 604ef47

Browse files
committed
Fix "docker-php-ext-configure" to allow arbitrary absolute paths again
1 parent 4a30467 commit 604ef47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker-php-ext-configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ if [ -z "$srcExists" ]; then
1010
touch /usr/src/php/.docker-delete-me
1111
fi
1212

13+
cd /usr/src/php/ext
14+
1315
ext="$1"
14-
extDir="/usr/src/php/ext/$ext"
15-
if [ -z "$ext" ] || [ ! -d "$extDir" ]; then
16+
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
1617
echo >&2 "usage: $0 ext-name [configure flags]"
1718
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
1819
echo >&2
@@ -46,6 +47,6 @@ if [ "$pm" = 'apk' ]; then
4647
fi
4748

4849
set -x
49-
cd "$extDir"
50+
cd "$ext"
5051
phpize
5152
./configure "$@"

0 commit comments

Comments
 (0)