Skip to content

Commit 5883a1a

Browse files
asomersfacebook-github-bot
authored andcommittedAug 3, 2017
Fix /bin/bash shebangs
Summary: "/bin/bash" is a Linuxism. "/usr/bin/env bash" is portable. Closes facebook#2646 Differential Revision: D5556259 Pulled By: ajkr fbshipit-source-id: cbffd38ecdbfffb2438969ec007ab345ed893ccb
1 parent cc01985 commit 5883a1a

18 files changed

+18
-18
lines changed
 

‎buckifier/rocks_test_runner.sh

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

‎build_tools/cont_integration.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright (c) 2016, Facebook. All rights reserved.
44
#

‎build_tools/dockerbuild.sh

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

‎build_tools/format-diff.sh

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

‎build_tools/regression_build_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

‎build_tools/rocksdb-lego-determinator

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# This script is executed by Sandcastle
33
# to determine next steps to run
44

‎coverage/coverage_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Exit on error.
44
set -e

‎tools/benchmark.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# REQUIRE: db_bench binary exists in the current directory
33

44
if [ $# -ne 1 ]; then

‎tools/benchmark_leveldb.sh

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

‎tools/check_format_compatible.sh

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

‎tools/dbench_monitor

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
#(c) 2004-present, Facebook Inc. All rights reserved.
44
#

‎tools/generate_random_db.sh

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

‎tools/pflag

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

‎tools/rdb/rdb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
node -e "RDB = require('./build/Release/rdb').DBWrapper; console.log('Loaded rocksdb in variable RDB'); repl = require('repl').start('> ');"

‎tools/regression_test.sh

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

‎tools/run_flash_bench.sh

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

‎tools/run_leveldb.sh

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

‎tools/verify_random_db.sh

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

0 commit comments

Comments
 (0)
Please sign in to comment.