Skip to content

Commit

Permalink
fix: Use #!/usr/bin/env bash rather than #!/bin/bash
Browse files Browse the repository at this point in the history
As an act of selfless kindness to non FHS-compliant OSes (like NixOS)

This should be strictly more portable than the current shebang

Signed-off-by: Silas Davis <[email protected]>
  • Loading branch information
silasdavis committed Sep 19, 2024
1 parent ea0a61a commit 299a053
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ci/scripts/prepare_fhe_keys_ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -Eeuo pipefail

Expand Down
4 changes: 2 additions & 2 deletions ci/scripts/prepare_fhe_keys_for_e2e_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -Eeuo pipefail

Expand All @@ -14,7 +14,7 @@ KEYS_FULL_PATH=$1
mkdir -p $NETWORK_KEYS_PUBLIC_PATH

MANDATORY_KEYS_LIST=('pks')

echo "check folder $KEYS_FULL_PATH"
for key in "${MANDATORY_KEYS_LIST[@]}"
do
Expand Down
4 changes: 2 additions & 2 deletions ci/scripts/run_ERC20.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash

# This script execute a python script within a ready-to-use docker image with all the required python modules.
# This script execute a python script within a ready-to-use docker image with all the required python modules.
# The script takes two arguments:
# 1. The private key of the main account which has already funds.
# 2. (Optional) The node address (default: http://host.docker.internal:8545)
Expand Down
4 changes: 2 additions & 2 deletions ci/scripts/run_ERC20_ci_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script exports an Ethereum private key from an evmos node and uses it to run a Python script.
# The script takes two arguments:
Expand All @@ -25,4 +25,4 @@ PRIVATE_KEY=$(docker compose -f $PATH_TO_EVMOS/docker-compose/docker-compose.val
echo "Exported private key: $PRIVATE_KEY"

# Run the Python script with the exported private key as an argument
docker compose -f ci/docker-compose.yml run app python ci/tests/ERC20.py $PRIVATE_KEY
docker compose -f ci/docker-compose.yml run app python ci/tests/ERC20.py $PRIVATE_KEY
2 changes: 1 addition & 1 deletion ci/scripts/run_ERC20_e2e_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script exports an Ethereum private key from an evmos node and uses it to run a Python script.
# The script takes two arguments:
Expand Down
4 changes: 2 additions & 2 deletions launch-fhevm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

PRIVATE_KEY_GATEWAY_DEPLOYER=$(grep PRIVATE_KEY_GATEWAY_DEPLOYER .env | cut -d '"' -f 2)

Expand All @@ -15,7 +15,7 @@ docker run -d -i -p 8545:8545 --rm --name fhevm \
-e ORACLE_CONTRACT_PREDEPLOY_ADDRESS="$ORACLE_CONTRACT_PREDEPLOY_ADDRESS" \
-e TFHE_EXECUTOR_CONTRACT_ADDRESS="$TFHE_EXECUTOR_CONTRACT_ADDRESS" \
ghcr.io/zama-ai/ethermint-dev-node:v0.5.0-1

sleep 10

npx hardhat task:computeACLAddress
Expand Down
4 changes: 2 additions & 2 deletions scripts/faucet.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#!/usr/bin/env bash

# Alice
npm run fhevm:faucet
sleep 8
sleep 8
npm run fhevm:faucet:bob
sleep 8
npm run fhevm:faucet:carol
Expand Down
2 changes: 1 addition & 1 deletion setup-local-fhevm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Assumes the following:
# 1. A local and **fresh** fhEVM node is already running.
Expand Down

0 comments on commit 299a053

Please sign in to comment.