This commit is contained in:
Sebastian
2024-03-18 16:36:17 +01:00
parent d873bb263a
commit eb12637cc3
3 changed files with 4 additions and 7 deletions

View File

@@ -4,10 +4,7 @@ if [ $# -gt 2 ]; then
exit 1
fi
read -r id
if [ -z "$id" ]; then
id="$1"
fi
id="$1"
if [[ $id == 0x* ]]; then
id=$(printf "%d" "$id")
@@ -15,7 +12,7 @@ fi
index="${2:-0}"
json_file="reference-rpc-endpoint.json"
json_file="/root/rpc/reference-rpc-endpoint.json"
if [ ! -f "$json_file" ]; then
exit 1
fi