update-pcre: Use a subshell to avoid cd ..

Shellcheck warning SC2103.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2020-11-17 14:22:41 +00:00
parent 51651ac67e
commit c7d2206df3

View File

@ -43,7 +43,8 @@ cd pcre
# the file and then distribute it with GRegex.
echo "Generating pcre_chartables.c"
cp -R "${PCRE}" tmp-build
cd tmp-build
(
cd tmp-build || exit 1
./configure --enable-utf8 --enable-unicode-properties --disable-cpp > /dev/null
make pcre_chartables.c > /dev/null
cat > ../pcre_chartables.c << \EOF
@ -52,7 +53,7 @@ cat > ../pcre_chartables.c << \EOF
*/
EOF
cat pcre_chartables.c >> ../pcre_chartables.c
cd ..
)
rm -R tmp-build
# Compiled C files.