-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathasset-cli
More file actions
executable file
·29 lines (26 loc) · 774 Bytes
/
asset-cli
File metadata and controls
executable file
·29 lines (26 loc) · 774 Bytes
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
#!/bin/bash
scriptpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $scriptpath/main
if (( $thirdpartycoins < 1 )); then
searchlist="coinsfirst[@]"
else
searchlist="coinsthird[@]"
fi
#search smartchains
if (( $thirdpartycoins < 1 )); then
for coins in "${coinlist[@]}"; do
coin=($coins)
if [[ -z "$1" || "${1^^}" == "${coin[0]}" ]] && [[ ! ${ignoreacs[*]} =~ ${coin[0]} ]]; then
$komodocli -ac_name=${coin[0]} $2 $3 $4 $5 $6 $7 $8 $9
fi
done
fi
#search other coins
for coins in "${!searchlist}"; do
searchcoin=($coins)
coin=($coins)
if [[ -z "$1" || "${1^^}" == "${searchcoin[0]}" ]]; then
eval $(echo coincli=${searchcoin[1]})
$coincli $2 $3 $4 $5 $6 $7 $8 $9
fi
done