Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
codemod --extensions sh '#!/usr/bin/env bash -e' '#!/usr/bin/env bash…
Browse files Browse the repository at this point in the history
…\nset -e'
  • Loading branch information
mvines committed Nov 12, 2018
1 parent 33aab09 commit def7d15
Show file tree
Hide file tree
Showing 55 changed files with 112 additions and 56 deletions.
3 changes: 2 additions & 1 deletion ci/audit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Audits project dependencies for security vulnerabilities
#
Expand Down
3 changes: 2 additions & 1 deletion ci/crate-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Outputs the current crate version
#
Expand Down
3 changes: 2 additions & 1 deletion ci/docker-run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

usage() {
echo "Usage: $0 [--nopull] [docker image name] [command]"
Expand Down
3 changes: 2 additions & 1 deletion ci/docker-rust-nightly/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

cd "$(dirname "$0")"

Expand Down
3 changes: 2 additions & 1 deletion ci/docker-rust/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

cd "$(dirname "$0")"

Expand Down
3 changes: 2 additions & 1 deletion ci/docker-snapcraft/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

cd "$(dirname "$0")"

Expand Down
3 changes: 2 additions & 1 deletion ci/docker-solana/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

cd "$(dirname "$0")"
eval "$(../channel-info.sh)"
Expand Down
3 changes: 2 additions & 1 deletion ci/docker-solana/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

export RUST_LOG=${RUST_LOG:-solana=info} # if RUST_LOG is unset, default to info
export RUST_BACKTRACE=1
Expand Down
3 changes: 2 additions & 1 deletion ci/is-pr.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# The standard BUILDKITE_PULL_REQUEST environment variable is always "false" due
# to how solana-ci-gate is used to trigger PR builds rather than using the
Expand Down
3 changes: 2 additions & 1 deletion ci/localnet-sanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Perform a quick sanity test on a leader, drone, validator and client running
# locally on the same machine
Expand Down
3 changes: 2 additions & 1 deletion ci/pr-snap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Only run snap.sh for pull requests that modify files under /snap
#
Expand Down
3 changes: 2 additions & 1 deletion ci/publish-book.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/publish-bpf-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/publish-crate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/publish-solana-tar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/run-local.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Run the entire buildkite CI pipeline locally for pre-testing before sending a
# Github pull request
Expand Down
3 changes: 2 additions & 1 deletion ci/shellcheck.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive

Expand Down
3 changes: 2 additions & 1 deletion ci/snap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/test-bench.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/test-large-network.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

here=$(dirname "$0")
cd "$here"/..
Expand Down
3 changes: 2 additions & 1 deletion ci/test-nightly.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."
source ci/upload_ci_artifact.sh
Expand Down
3 changes: 2 additions & 1 deletion ci/test-stable-perf.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/test-stable.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/testnet-automation-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/testnet-automation.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/testnet-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/..

Expand Down
3 changes: 2 additions & 1 deletion ci/testnet-manager.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/..

Expand Down
3 changes: 2 additions & 1 deletion ci/testnet-sanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/.."

Expand Down
3 changes: 2 additions & 1 deletion ci/version-check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

require() {
declare expectedProgram="$1"
Expand Down
3 changes: 2 additions & 1 deletion fetch-perf-libs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

if [[ $(uname) != Linux ]]; then
echo Performance libraries are only available for Linux
Expand Down
3 changes: 2 additions & 1 deletion multinode-demo/client.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

here=$(dirname "$0")
# shellcheck source=multinode-demo/common.sh
Expand Down
6 changes: 4 additions & 2 deletions net/gce.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

here=$(dirname "$0")
# shellcheck source=net/common.sh
Expand Down Expand Up @@ -380,7 +381,8 @@ EOF

declare startupScript="$netConfigDir"/instance-startup-script.sh
cat > "$startupScript" <<EOF
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
# autogenerated at $(date)
cat > /etc/motd <<EOM
Expand Down
3 changes: 2 additions & 1 deletion net/init-metrics.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

here=$(dirname "$0")
# shellcheck source=net/common.sh
Expand Down
3 changes: 2 additions & 1 deletion net/net.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

here=$(dirname "$0")
SOLANA_ROOT="$(cd "$here"/..; pwd)"
Expand Down
3 changes: 2 additions & 1 deletion net/remote/remote-client.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/../..

Expand Down
3 changes: 2 additions & 1 deletion net/remote/remote-node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/../..

Expand Down
3 changes: 2 additions & 1 deletion net/remote/remote-sanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# This script is to be run on the leader node
#
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/add-solana-user-authorized_keys.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/create-solana-user.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/disable-background-upgrades.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
#
# Prevent background upgrades that block |apt-get|
#
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/install-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/install-earlyoom.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
#
# Install EarlyOOM
#
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/install-libssl-compatability.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/install-rsync.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
#
# Rsync setup for Snap builds
#
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/network-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
#

[[ $(uname) = Linux ]] || exit 1
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/remove-docker-interface.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
#
# Some instances have docker running and docker0 network interface confuses
# gossip and airdrops fail. As a workaround for now simply remove the docker0
Expand Down
3 changes: 2 additions & 1 deletion net/scripts/update-default-cuda.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex
#
# Updates the default cuda symlink to the supported version
#
Expand Down
3 changes: 2 additions & 1 deletion programs/bpf/rust/noop/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -ex
#!/usr/bin/env bash
set -ex

# TODO building release flavor with rust produces a bunch of output .bc files
INTERDIR=../../../target/release
Expand Down
3 changes: 2 additions & 1 deletion scripts/increment-cargo-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

usage() {
cat <<EOF
Expand Down
3 changes: 2 additions & 1 deletion scripts/install-native-programs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Installs native programs as |cargo install| doesn't know about them
#
Expand Down
3 changes: 2 additions & 1 deletion scripts/metrics-write-datapoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Send a metrics datapoint
#
Expand Down
3 changes: 2 additions & 1 deletion scripts/net-stats.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Reports network statistics
#
Expand Down
3 changes: 2 additions & 1 deletion scripts/oom-monitor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Reports Linux OOM Killer activity
#
Expand Down
3 changes: 2 additions & 1 deletion scripts/wallet-help.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/..

Expand Down
3 changes: 2 additions & 1 deletion scripts/wallet-sanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash -e
#!/usr/bin/env bash
set -e
#
# Wallet sanity test
#
Expand Down

0 comments on commit def7d15

Please sign in to comment.