Skip to content

Commit

Permalink
Fix /bin/bash shebangs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
asomers authored and facebook-github-bot committed Aug 3, 2017
1 parent cc01985 commit 5883a1a
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion buckifier/rocks_test_runner.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Create a tmp directory for the test to use
TEST_DIR=$(mktemp -d /dev/shm/fbcode_rocksdb_XXXXXXX)
TEST_TMPDIR="$TEST_DIR" $@ && rm -rf "$TEST_DIR"
2 changes: 1 addition & 1 deletion build_tools/cont_integration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (c) 2016, Facebook. All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion build_tools/dockerbuild.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
docker run -v $PWD:/rocks -w /rocks buildpack-deps make
2 changes: 1 addition & 1 deletion build_tools/format-diff.sh
Original file line number Diff line number Diff line change
@@ -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
# access directly without any path.
if [ -z $CLANG_FORMAT_DIFF ]
Expand Down
2 changes: 1 addition & 1 deletion build_tools/regression_build_test.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 build_tools/rocksdb-lego-determinator
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script is executed by Sandcastle
# to determine next steps to run

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

# Exit on error.
set -e
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# REQUIRE: db_bench binary exists in the current directory

if [ $# -ne 1 ]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark_leveldb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# REQUIRE: db_bench binary exists in the current directory
#
# This should be used with the LevelDB fork listed here to use additional test options.
Expand Down
2 changes: 1 addition & 1 deletion tools/check_format_compatible.sh
Original file line number Diff line number Diff line change
@@ -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
# ./ldb needs to be avaible to be executed.
Expand Down
2 changes: 1 addition & 1 deletion tools/dbench_monitor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
#(c) 2004-present, Facebook Inc. All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion tools/generate_random_db.sh
Original file line number Diff line number Diff line change
@@ -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
# ./ldb needs to be avaible to be executed.
Expand Down
2 changes: 1 addition & 1 deletion tools/pflag
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
#(c) 2004-present, Facebook, all rights reserved.
# See the LICENSE file for usage and distribution rights.
Expand Down
2 changes: 1 addition & 1 deletion tools/rdb/rdb
Original file line number Diff line number Diff line change
@@ -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('> ');"
2 changes: 1 addition & 1 deletion tools/regression_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# The RocksDB regression test script.
# REQUIREMENT: must be able to run make db_bench in the current directory
#
Expand Down
2 changes: 1 addition & 1 deletion tools/run_flash_bench.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# REQUIRE: benchmark.sh exists in the current directory
# After execution of this script, log files are generated in $output_dir.
# report.txt provides a high level statistics
Expand Down
2 changes: 1 addition & 1 deletion tools/run_leveldb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# REQUIRE: benchmark_leveldb.sh exists in the current directory
# After execution of this script, log files are generated in $output_dir.
# report.txt provides a high level statistics
Expand Down
2 changes: 1 addition & 1 deletion tools/verify_random_db.sh
Original file line number Diff line number Diff line change
@@ -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.
# ./ldb needs to be avaible to be executed.
Expand Down

0 comments on commit 5883a1a

Please sign in to comment.