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
This commit is contained in:
Alan Somers 2017-08-03 15:43:05 -07:00 committed by Facebook Github Bot
parent cc01985db0
commit 5883a1ae24
18 changed files with 18 additions and 18 deletions

View File

@ -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"

View File

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

View File

@ -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

View File

@ -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 ]

View File

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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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.
# #

View File

@ -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.

View File

@ -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.

View File

@ -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('> ');"

View File

@ -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
# #

View File

@ -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

View File

@ -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

View File

@ -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.