Skip to content

Commit d915c0c

Browse files
committed
Fixed using Bash in shell command
- without this, the syntax is not recognised because we use `sh`
1 parent 1a206df commit d915c0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/BinaryBuilder.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM node:$NODE_VERSION-$VARIANT
55

66
ARG VARIANT
77

8-
RUN if [[ "$VARIANT" =~ alpine* ]] ; then apk add build-base python3 --update-cache ; fi
8+
RUN if case $VARIANT in "alpine"*) true;; *) false;; esac; then apk add build-base python3 --update-cache ; fi
99

1010
WORKDIR /usr/src/build
1111

@@ -22,7 +22,7 @@ ENV CXXFLAGS="${CXXFLAGS:-} -include ../src/gcc-preinclude.h"
2222
RUN npx node-pre-gyp configure
2323
RUN npx node-pre-gyp build
2424

25-
RUN if [[ ! "$VARIANT" =~ alpine* ]] ; then ldd lib/binding/*/node_sqlite3.node; nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true ; fi
25+
RUN if case $VARIANT in "alpine"*) false;; *) true;; esac; then ldd lib/binding/*/node_sqlite3.node; nm lib/binding/*/node_sqlite3.node | grep \"GLIBC_\" | c++filt || true ; fi
2626

2727
RUN npm run test
2828
RUN npx node-pre-gyp package

0 commit comments

Comments
 (0)