codemod --extensions sh '#!/usr/bin/env bash -e' '#!/usr/bin/env bash\nset -e'
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
here=$(dirname "$0")
|
||||
# shellcheck source=net/common.sh
|
||||
@@ -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
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
here=$(dirname "$0")
|
||||
# shellcheck source=net/common.sh
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
here=$(dirname "$0")
|
||||
SOLANA_ROOT="$(cd "$here"/..; pwd)"
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"/../..
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -e
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
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
|
||||
#
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -ex
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
[[ $(uname) = Linux ]] || 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
|
||||
[[ $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|
|
||||
#
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -ex
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
[[ $(uname) = Linux ]] || exit 1
|
||||
[[ $USER = root ]] || exit 1
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -ex
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
#
|
||||
# Install EarlyOOM
|
||||
#
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -ex
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
[[ $(uname) = Linux ]] || 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
|
||||
#
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash -ex
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
#
|
||||
|
||||
[[ $(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
|
||||
# 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
|
||||
#
|
||||
|
Reference in New Issue
Block a user