codemod --extensions sh '#!/bin/bash' '#!/usr/bin/env bash'

This commit is contained in:
Michael Vines
2018-11-11 08:02:50 -08:00
parent cf6f344ccc
commit 33aab094ef
65 changed files with 66 additions and 66 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
here=$(dirname "$0")
# shellcheck source=net/common.sh
@ -380,7 +380,7 @@ EOF
declare startupScript="$netConfigDir"/instance-startup-script.sh
cat > "$startupScript" <<EOF
#!/bin/bash -ex
#!/usr/bin/env bash -ex
# autogenerated at $(date)
cat > /etc/motd <<EOM

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
here=$(dirname "$0")
# shellcheck source=net/common.sh

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
here=$(dirname "$0")
SOLANA_ROOT="$(cd "$here"/..; pwd)"

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
cd "$(dirname "$0")"/../..

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
cd "$(dirname "$0")"/../..

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
#
# This script is to be run on the leader node
#

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
#
# Prevent background upgrades that block |apt-get|
#

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
#
# Install EarlyOOM
#

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
#
# Rsync setup for Snap builds
#

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
#
[[ $(uname) = Linux ]] || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
#
# Some instances have docker running and docker0 network interface confuses
# gossip and airdrops fail. As a workaround for now simply remove the docker0

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# rsync wrapper that retries a few times on failure
#

View File

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
#
# Updates the default cuda symlink to the supported version
#

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
here=$(dirname "$0")
# shellcheck source=net/common.sh