Skip to content

Commit 4a30467

Browse files
committed
Use "$PWD" for safer save/restore
1 parent 5e60539 commit 4a30467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-php-ext-install

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ if [ "$pm" = 'apk' ]; then
8989
fi
9090
fi
9191

92+
popDir="$PWD"
9293
for ext in $exts; do
9394
cd "$ext"
9495
[ -e Makefile ] || docker-php-ext-configure "$ext"
@@ -100,7 +101,7 @@ for ext in $exts; do
100101
-exec basename '{}' ';' \
101102
| xargs -r docker-php-ext-enable
102103
make -j"$j" clean
103-
cd ..
104+
cd "$popDir"
104105
done
105106

106107
if [ "$pm" = 'apk' ] && [ -n "$apkDel" ]; then

0 commit comments

Comments
 (0)