Skip to content

Commit

Permalink
Use /usr/bin/env bash in shebangs (qdrant#3570)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzfc authored and timvisee committed Mar 5, 2024
1 parent fb46ec8 commit b415a00
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion tests/basic_api_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This test checks that Qdrant answers to all API mentioned in README.md as expected

set -ex
Expand Down
2 changes: 1 addition & 1 deletion tests/basic_grpc_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This test checks that Qdrant answers to all API mentioned in README.md as expected

set -ex
Expand Down
2 changes: 1 addition & 1 deletion tests/basic_sparse_grpc_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This test checks that Qdrant answers to all API mentioned in README.md as expected

set -ex
Expand Down
2 changes: 1 addition & 1 deletion tests/basic_sparse_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This test checks that Qdrant answers to all API mentioned in README.md as expected

set -ex
Expand Down
2 changes: 1 addition & 1 deletion tests/consensus_tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -ex

Expand Down
2 changes: 1 addition & 1 deletion tests/consensus_tests/test_restart.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -ex

Expand Down
2 changes: 1 addition & 1 deletion tests/grpc_consistency_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Some gRPC files in this repository are generated and based upon other
# sources. When these sources change, the generated files must be generated
# (and committed) again. It is the task of the contributing user to do this
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests-api-key.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This runs the auth integration tests in isolation

set -eux
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This runs all integration test in isolation

set -ex
Expand Down
2 changes: 1 addition & 1 deletion tests/low-ram/low-ram.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -xeuo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tests/openapi_consistency_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Some OpenAPI files in this repository are generated and based upon other
# sources. When these sources change, the generated files must be generated
# (and committed) again. It is the task of the contributing user to do this
Expand Down
2 changes: 1 addition & 1 deletion tests/openapi_integration_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -ex

Expand Down
4 changes: 1 addition & 3 deletions tests/removes_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This test checks that Qdrant answers to all API mentioned in README.md as expected


Expand Down Expand Up @@ -26,7 +26,6 @@ curl -X PUT "http://$QDRANT_HOST/collections/test_collection" \
}' | jq


#!/bin/bash
for i in {1..100}
do
IDX=$i
Expand Down Expand Up @@ -70,7 +69,6 @@ curl -L -X POST "http://$QDRANT_HOST/collections/test_collection/points/delete?w
--data-raw "$PAYLOAD" | jq


#!/bin/bash
for i in {1..10}
do
IDX=$i
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/snapshots-recovery.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -ex

Expand Down
2 changes: 1 addition & 1 deletion tests/storage-compat/gen_storage_compat_data.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -ex

Expand Down
2 changes: 1 addition & 1 deletion tests/storage-compat/storage-compatibility.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This runs validates the storage compatibility

set -ex
Expand Down
2 changes: 1 addition & 1 deletion tests/tls/gen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

openssl req \
-new \
Expand Down
2 changes: 1 addition & 1 deletion tests/tls/test_tls.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down
2 changes: 1 addition & 1 deletion tests/tls/test_tls_snapshot_shard_transfer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tools/clean-old-rocksdb-logs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Clean old RocksDB log files, always leave the last two.
#
Expand Down
2 changes: 1 addition & 1 deletion tools/generate_openapi_models.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script generate model definitions for OpenAPI 3.0 documentation

set -e
Expand Down

0 comments on commit b415a00

Please sign in to comment.