add env and +x

This commit is contained in:
vvzvlad 2024-08-26 17:20:25 +03:00
parent e65e0d95ed
commit 714bf4c863
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
@ -25,7 +25,7 @@ if [ -n "$mnemonic" ]; then
echo "NAME=$nodeName" >> ./worker-data/env_file echo "NAME=$nodeName" >> ./worker-data/env_file
echo "ENV_LOADED=true" >> ./worker-data/env_file echo "ENV_LOADED=true" >> ./worker-data/env_file
echo "wallet mnemonic already provided by you, loading config.json . Please proceed to run docker compose" echo "wallet mnemonic already provided by you, loading config.json . Please proceed to run docker compose"
exit 1 exit 0
fi fi
if [ ! -f ./worker-data/env_file ]; then if [ ! -f ./worker-data/env_file ]; then

2
update.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ "$#" -ne 3 ]; then if [ "$#" -ne 3 ]; then
echo "Usage: $0 <mnemonic> <wallet> <rpc_url>" echo "Usage: $0 <mnemonic> <wallet> <rpc_url>"