Fix /bin/bash shebangs

Summary:
"/bin/bash" is a Linuxism.  "/usr/bin/env bash" is portable.
Closes https://github.com/facebook/rocksdb/pull/2646

Differential Revision: D5556259

Pulled By: ajkr

fbshipit-source-id: cbffd38ecdbfffb2438969ec007ab345ed893ccb
main
Alan Somers 7 years ago committed by Facebook Github Bot
parent cc01985db0
commit 5883a1ae24
  1. 2
      buckifier/rocks_test_runner.sh
  2. 2
      build_tools/cont_integration.sh
  3. 2
      build_tools/dockerbuild.sh
  4. 2
      build_tools/format-diff.sh
  5. 2
      build_tools/regression_build_test.sh
  6. 2
      build_tools/rocksdb-lego-determinator
  7. 2
      coverage/coverage_test.sh
  8. 2
      tools/benchmark.sh
  9. 2
      tools/benchmark_leveldb.sh
  10. 2
      tools/check_format_compatible.sh
  11. 2
      tools/dbench_monitor
  12. 2
      tools/generate_random_db.sh
  13. 2
      tools/pflag
  14. 2
      tools/rdb/rdb
  15. 2
      tools/regression_test.sh
  16. 2
      tools/run_flash_bench.sh
  17. 2
      tools/run_leveldb.sh
  18. 2
      tools/verify_random_db.sh

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Create a tmp directory for the test to use # Create a tmp directory for the test to use
TEST_DIR=$(mktemp -d /dev/shm/fbcode_rocksdb_XXXXXXX) TEST_DIR=$(mktemp -d /dev/shm/fbcode_rocksdb_XXXXXXX)
TEST_TMPDIR="$TEST_DIR" $@ && rm -rf "$TEST_DIR" TEST_TMPDIR="$TEST_DIR" $@ && rm -rf "$TEST_DIR"

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Copyright (c) 2016, Facebook. All rights reserved. # Copyright (c) 2016, Facebook. All rights reserved.
# #

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
docker run -v $PWD:/rocks -w /rocks buildpack-deps make docker run -v $PWD:/rocks -w /rocks buildpack-deps make

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# If clang_format_diff.py command is not specfied, we assume we are able to # If clang_format_diff.py command is not specfied, we assume we are able to
# access directly without any path. # access directly without any path.
if [ -z $CLANG_FORMAT_DIFF ] if [ -z $CLANG_FORMAT_DIFF ]

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# This script is executed by Sandcastle # This script is executed by Sandcastle
# to determine next steps to run # to determine next steps to run

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Exit on error. # Exit on error.
set -e set -e

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# REQUIRE: db_bench binary exists in the current directory # REQUIRE: db_bench binary exists in the current directory
if [ $# -ne 1 ]; then if [ $# -ne 1 ]; then

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# REQUIRE: db_bench binary exists in the current directory # REQUIRE: db_bench binary exists in the current directory
# #
# This should be used with the LevelDB fork listed here to use additional test options. # This should be used with the LevelDB fork listed here to use additional test options.

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# A shell script to load some pre generated data file to a DB using ldb tool # A shell script to load some pre generated data file to a DB using ldb tool
# ./ldb needs to be avaible to be executed. # ./ldb needs to be avaible to be executed.

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
#(c) 2004-present, Facebook Inc. All rights reserved. #(c) 2004-present, Facebook Inc. All rights reserved.
# #

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# A shell script to load some pre generated data file to a DB using ldb tool # A shell script to load some pre generated data file to a DB using ldb tool
# ./ldb needs to be avaible to be executed. # ./ldb needs to be avaible to be executed.

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
#(c) 2004-present, Facebook, all rights reserved. #(c) 2004-present, Facebook, all rights reserved.
# See the LICENSE file for usage and distribution rights. # See the LICENSE file for usage and distribution rights.

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
node -e "RDB = require('./build/Release/rdb').DBWrapper; console.log('Loaded rocksdb in variable RDB'); repl = require('repl').start('> ');" node -e "RDB = require('./build/Release/rdb').DBWrapper; console.log('Loaded rocksdb in variable RDB'); repl = require('repl').start('> ');"

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# The RocksDB regression test script. # The RocksDB regression test script.
# REQUIREMENT: must be able to run make db_bench in the current directory # REQUIREMENT: must be able to run make db_bench in the current directory
# #

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# REQUIRE: benchmark.sh exists in the current directory # REQUIRE: benchmark.sh exists in the current directory
# After execution of this script, log files are generated in $output_dir. # After execution of this script, log files are generated in $output_dir.
# report.txt provides a high level statistics # report.txt provides a high level statistics

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# REQUIRE: benchmark_leveldb.sh exists in the current directory # REQUIRE: benchmark_leveldb.sh exists in the current directory
# After execution of this script, log files are generated in $output_dir. # After execution of this script, log files are generated in $output_dir.
# report.txt provides a high level statistics # report.txt provides a high level statistics

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# A shell script to verify DB generated by generate_random_db.sh cannot opened and read correct data. # A shell script to verify DB generated by generate_random_db.sh cannot opened and read correct data.
# ./ldb needs to be avaible to be executed. # ./ldb needs to be avaible to be executed.

Loading…
Cancel
Save