Skip to content

Commit

Permalink
bash: use less opionated shebang (#1860)
Browse files Browse the repository at this point in the history
* bash: use less opionated shebang

* bash: add missing echo variable
  • Loading branch information
FlorianFranzen authored Aug 27, 2024
1 parent b6a0918 commit e9f0993
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/check_creations.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

KEY_ENCODED=$1
SCRIPT=$(realpath "$0")
Expand Down
2 changes: 1 addition & 1 deletion examples/delay_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

ping -q -c 2 8.8.8.8 | tail -1 | awk -F "/" '{print $5}'
ping -q -c 2 8.8.8.8 | tail -1 | awk -F "/" '{print $5}'
Expand Down
3 changes: 2 additions & 1 deletion javascript/packages/orchestrator/zombie-wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -uxo pipefail

if [ -f /cfg/coreutils ]; then
Expand All @@ -17,6 +17,7 @@ else
LS="ls"
KILL="kill"
SLEEP="sleep"
ECHO="echo"
CAT="cat"
fi

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

# Based on https://gitlab.parity.io/parity/simnet/-/blob/master/scripts/ci/run-test-environment-manager-v2.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/run-test-local-env-manager.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Based on https://gitlab.parity.io/parity/simnet/-/blob/master/scripts/ci/run-test-environment-manager-v2.sh

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

POD=$1
PORT=$2 # 9615 for prometheus
Expand Down
2 changes: 1 addition & 1 deletion tests/k8s/downloadPolkadot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euxo pipefail

Expand Down

0 comments on commit e9f0993

Please sign in to comment.