Skip to content

Commit 402441e

Browse files
COIN_TGZ - Change in terminology
1 parent e42c74b commit 402441e

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

decenomy.sh

+20-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# DECENOMY (DMY) Masternode Multinode Script.
44
# Designed to automate masternode multinode installation on pre-purchased Virtual Private Servers (VPS), with maintenance features built in.
5-
# (c) João@DECENOMY, 2023
5+
# (c) DECENOMY, 2023
66
# All rights reserved
77
# MIT License
88

@@ -19,7 +19,7 @@ NC='\033[0m'
1919
ASCII_L="--│█│█"
2020
ASCII_R="│█│█--"
2121
ASCII_LINE="--------------------------------------------------------------"
22-
SCRIPVERSION=v1.0.8
22+
SCRIPVERSION=v1.0.9
2323
SCRIPT_GITHUB=https://api.github.com/repos/decenomy/mnscript/releases/latest
2424
SCRIPT_FILE=`curl -s $SCRIPT_GITHUB | grep "browser_download_url.*decenomy.sh" | cut -d : -f 2,3 | tr -d \" | xargs`
2525
NODEIP=$(curl --fail --retry 3 -s4 icanhazip.com)
@@ -33,7 +33,7 @@ fi
3333
header() {
3434
sed -e "s|\${GREEN}|$GREEN|g" -e "s|\${NC}|$NC|g" update_report.txt | while read -r line; do echo -e "$line"; done
3535
echo
36-
echo -e "${BLUE}${BOLD}
36+
echo -e "${BLUE}
3737
\t\t ██████╗ ███╗ ███╗██╗ ██╗
3838
\t\t ██╔══██╗████╗ ████║╚██╗ ██╔╝
3939
\t\t ██║ ██║██╔████╔██║ ╚████╔╝
@@ -107,7 +107,7 @@ var_azr() {
107107
TICKER='AZR'
108108
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
109109
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
110-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
110+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
111111
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
112112
COIN_PORT=14725
113113
RPC_PORT=14724
@@ -126,7 +126,7 @@ var_becn() {
126126
TICKER='BECN'
127127
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
128128
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
129-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
129+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
130130
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
131131
COIN_PORT=36552
132132
RPC_PORT=36553
@@ -145,7 +145,7 @@ var_bir() {
145145
TICKER='BIR'
146146
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
147147
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
148-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
148+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
149149
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
150150
COIN_PORT=39697
151151
RPC_PORT=39698
@@ -164,7 +164,7 @@ var_cfl() {
164164
TICKER='CFL'
165165
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
166166
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
167-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
167+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
168168
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
169169
COIN_PORT=13333
170170
RPC_PORT=13334
@@ -183,7 +183,7 @@ var_saga() {
183183
TICKER='SAGA'
184184
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
185185
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
186-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
186+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
187187
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
188188
COIN_NAME='cryptosaga'
189189
COIN_PORT=37552
@@ -203,7 +203,7 @@ var_dashd() {
203203
TICKER='DASHD'
204204
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
205205
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
206-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
206+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
207207
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
208208
COIN_PORT=12341
209209
RPC_PORT=23452
@@ -222,7 +222,7 @@ var_esk() {
222222
TICKER='ESK'
223223
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
224224
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
225-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
225+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
226226
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
227227
COIN_PORT=14215
228228
RPC_PORT=14214
@@ -241,7 +241,7 @@ var_fls() {
241241
TICKER='FLS'
242242
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
243243
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
244-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
244+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
245245
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
246246
COIN_PORT=32972
247247
RPC_PORT=32973
@@ -260,7 +260,7 @@ var_777() {
260260
TICKER='777'
261261
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
262262
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
263-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
263+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
264264
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
265265
COIN_PORT=17771
266266
RPC_PORT=27772
@@ -279,7 +279,7 @@ var_kyan() {
279279
TICKER='KYAN'
280280
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
281281
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
282-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
282+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
283283
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
284284
COIN_PORT=7757
285285
RPC_PORT=7758
@@ -298,7 +298,7 @@ var_mobic() {
298298
TICKER='MOBIC'
299299
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
300300
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
301-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
301+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
302302
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
303303
COIN_PORT=22487
304304
RPC_PORT=22488
@@ -317,7 +317,7 @@ var_monk() {
317317
TICKER='MONK'
318318
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
319319
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
320-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
320+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
321321
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
322322
COIN_PORT=32270
323323
RPC_PORT=32271
@@ -336,7 +336,7 @@ var_owo() {
336336
TICKER='OWO'
337337
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
338338
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
339-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
339+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
340340
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
341341
COIN_PORT=32112
342342
RPC_PORT=32113
@@ -355,7 +355,7 @@ var_pny() {
355355
TICKER='PNY'
356356
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
357357
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
358-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
358+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
359359
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
360360
COIN_PORT=36779
361361
RPC_PORT=36780
@@ -374,7 +374,7 @@ var_sapp() {
374374
TICKER='SAPP'
375375
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
376376
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
377-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
377+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
378378
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
379379
COIN_PORT=45328
380380
RPC_PORT=45329
@@ -393,7 +393,7 @@ var_suv() {
393393
TICKER='SUV'
394394
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
395395
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
396-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
396+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
397397
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
398398
COIN_PORT=18976
399399
RPC_PORT=18977
@@ -412,7 +412,7 @@ var_ucr() {
412412
TICKER='UCR'
413413
GITHUB=https://api.github.com/repos/decenomy/$TICKER/releases/latest
414414
EXPLORER=https://explorer.decenomy.net/api/v2/$TICKER/blocks
415-
COIN_TGZ=`curl -s $GITHUB | grep "browser_download_url.*Linux\\.zip" | cut -d : -f 2,3 | tr -d \" | xargs`
415+
COIN_TGZ=`curl -s "$GITHUB" | grep -i "browser_download_url" | grep -E "Linux-x64\.zip|Linux\.zip" | cut -d : -f2-3 | tr -d \" | xargs`
416416
COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}')
417417
COIN_PORT=32628
418418
RPC_PORT=32627

0 commit comments

Comments
 (0)