codemod --extensions sh '#!/usr/bin/env bash -e' '#!/usr/bin/env bash\nset -e'
This commit is contained in:
parent
33aab094ef
commit
def7d156f6
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Audits project dependencies for security vulnerabilities
|
# Audits project dependencies for security vulnerabilities
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Outputs the current crate version
|
# Outputs the current crate version
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 [--nopull] [docker image name] [command]"
|
echo "Usage: $0 [--nopull] [docker image name] [command]"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
eval "$(../channel-info.sh)"
|
eval "$(../channel-info.sh)"
|
||||||
|
|
|
@ -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_LOG=${RUST_LOG:-solana=info} # if RUST_LOG is unset, default to info
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
|
|
|
@ -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
|
# 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
|
# to how solana-ci-gate is used to trigger PR builds rather than using the
|
||||||
|
|
|
@ -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
|
# Perform a quick sanity test on a leader, drone, validator and client running
|
||||||
# locally on the same machine
|
# locally on the same machine
|
||||||
|
|
|
@ -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
|
# Only run snap.sh for pull requests that modify files under /snap
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -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
|
# Run the entire buildkite CI pipeline locally for pre-testing before sending a
|
||||||
# Github pull request
|
# Github pull request
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive
|
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
cd "$here"/..
|
cd "$here"/..
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
source ci/upload_ci_artifact.sh
|
source ci/upload_ci_artifact.sh
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"/..
|
cd "$(dirname "$0")"/..
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"/..
|
cd "$(dirname "$0")"/..
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
require() {
|
require() {
|
||||||
declare expectedProgram="$1"
|
declare expectedProgram="$1"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
if [[ $(uname) != Linux ]]; then
|
if [[ $(uname) != Linux ]]; then
|
||||||
echo Performance libraries are only available for Linux
|
echo Performance libraries are only available for Linux
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
# shellcheck source=multinode-demo/common.sh
|
# shellcheck source=multinode-demo/common.sh
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
# shellcheck source=net/common.sh
|
# shellcheck source=net/common.sh
|
||||||
|
@ -380,7 +381,8 @@ EOF
|
||||||
|
|
||||||
declare startupScript="$netConfigDir"/instance-startup-script.sh
|
declare startupScript="$netConfigDir"/instance-startup-script.sh
|
||||||
cat > "$startupScript" <<EOF
|
cat > "$startupScript" <<EOF
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
# autogenerated at $(date)
|
# autogenerated at $(date)
|
||||||
|
|
||||||
cat > /etc/motd <<EOM
|
cat > /etc/motd <<EOM
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
# shellcheck source=net/common.sh
|
# shellcheck source=net/common.sh
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
SOLANA_ROOT="$(cd "$here"/..; pwd)"
|
SOLANA_ROOT="$(cd "$here"/..; pwd)"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"/../..
|
cd "$(dirname "$0")"/../..
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"/../..
|
cd "$(dirname "$0")"/../..
|
||||||
|
|
||||||
|
|
|
@ -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
|
# This script is to be run on the leader node
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
[[ $(uname) = Linux ]] || exit 1
|
[[ $(uname) = Linux ]] || exit 1
|
||||||
[[ $USER = root ]] || exit 1
|
[[ $USER = root ]] || exit 1
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
[[ $(uname) = Linux ]] || exit 1
|
[[ $(uname) = Linux ]] || exit 1
|
||||||
[[ $USER = root ]] || exit 1
|
[[ $USER = root ]] || exit 1
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
#
|
#
|
||||||
# Prevent background upgrades that block |apt-get|
|
# Prevent background upgrades that block |apt-get|
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
[[ $(uname) = Linux ]] || exit 1
|
[[ $(uname) = Linux ]] || exit 1
|
||||||
[[ $USER = root ]] || exit 1
|
[[ $USER = root ]] || exit 1
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
#
|
#
|
||||||
# Install EarlyOOM
|
# Install EarlyOOM
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
[[ $(uname) = Linux ]] || exit 1
|
[[ $(uname) = Linux ]] || exit 1
|
||||||
[[ $USER = root ]] || exit 1
|
[[ $USER = root ]] || exit 1
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
#
|
#
|
||||||
# Rsync setup for Snap builds
|
# Rsync setup for Snap builds
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
#
|
#
|
||||||
|
|
||||||
[[ $(uname) = Linux ]] || exit 1
|
[[ $(uname) = Linux ]] || exit 1
|
||||||
|
|
|
@ -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
|
# Some instances have docker running and docker0 network interface confuses
|
||||||
# gossip and airdrops fail. As a workaround for now simply remove the docker0
|
# gossip and airdrops fail. As a workaround for now simply remove the docker0
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
#
|
#
|
||||||
# Updates the default cuda symlink to the supported version
|
# Updates the default cuda symlink to the supported version
|
||||||
#
|
#
|
||||||
|
|
|
@ -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
|
# TODO building release flavor with rust produces a bunch of output .bc files
|
||||||
INTERDIR=../../../target/release
|
INTERDIR=../../../target/release
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
|
@ -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
|
# Installs native programs as |cargo install| doesn't know about them
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Send a metrics datapoint
|
# Send a metrics datapoint
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Reports network statistics
|
# Reports network statistics
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Reports Linux OOM Killer activity
|
# Reports Linux OOM Killer activity
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"/..
|
cd "$(dirname "$0")"/..
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
#
|
#
|
||||||
# Wallet sanity test
|
# Wallet sanity test
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue