Skip to content

Commit 90f3056

Browse files
committed
improve test script
1 parent 601b814 commit 90f3056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-ext.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ EXTENSION_FILE=${EXTENSION_FILE:-target/debug/examples/libsqlite_compressions}
66

77
if [ ! -f "$EXTENSION_FILE" ] && [ ! -f "$EXTENSION_FILE.so" ] && [ ! -f "$EXTENSION_FILE.dylib" ] && [ ! -f "$EXTENSION_FILE.dll" ]; then
88
echo "Extension file $EXTENSION_FILE [.so|.dylib|.dll] do not exist. Run 'just build-ext' first. Available files:"
9-
ls -l $EXTENSION_FILE*
9+
ls -l "$EXTENSION_FILE"*
1010
exit 1
1111
fi
1212
echo "Using extension file '$EXTENSION_FILE [.so|.dylib|.dll]'"
1313

14-
if [ ! command -v $SQLITE3_BIN &> /dev/null ]; then
14+
if ! command -v "$SQLITE3_BIN" > /dev/null; then
1515
echo "$SQLITE3_BIN executable could not be found"
1616
exit 1
1717
fi

0 commit comments

Comments
 (0)