Fix grep arch check

This commit is contained in:
Michael Telatynski 2023-04-13 17:27:49 +01:00
parent 5252c34c5a
commit 8fad845b1b
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -138,13 +138,15 @@ jobs:
run: |
set -x
shopt -s globstar
WRONG_ARCHES=$(file dist/**/*.node | grep -v "$ARCH")
if [ ! -z "$WRONG_ARCHES" ]; then
echo "$WRONG_ARCHES"
FILES=$(file "dist/**/*.node")
echo "$FILES"
if [ grep -v "$ARCH" ]; then
exit 1
fi
LIBS=$(readelf -d dist/**/*.node | grep NEEDED)
LIBS=$(readelf -d "dist/**/*.node" | grep NEEDED)
echo "$LIBS"
if [ "$SQLCIPHER_STATIC" == "1" ]; then