-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlistclis.sh
executable file
·46 lines (42 loc) · 1.25 KB
/
listclis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
cd "${BASH_SOURCE%/*}" || exit
# Optionally just get the cli for a single coin
# e.g "KMD"
specific_coin=$1
bitcoin_cli="bitcoin-cli"
chips_cli="chips-cli"
game_cli="gamecredits-cli"
hush_cli="hush-cli"
einsteinium_cli="einsteinium-cli"
gincoin_cli="gincoin-cli"
komodo_cli="komodo-cli"
verus_cli="vrsc-cli"
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "BTC" ]]; then
echo ${bitcoin_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "CHIPS" ]]; then
echo ${chips_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "GAME" ]]; then
echo ${game_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "HUSH" ]]; then
echo ${hush_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "EMC2" ]]; then
echo ${einsteinium_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "GIN" ]]; then
echo ${gincoin_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "VRSC" ]]; then
echo ${verus_cli}
fi
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "KMD" ]]; then
echo ${komodo_cli}
fi
./listassetchains | while read coin; do
if [[ -z "${specific_coin}" ]] || [[ "${specific_coin}" = "${coin}" ]]; then
echo "${komodo_cli} -ac_name=${coin}"
fi
done