Commit 07a01d7 1 parent c84315c commit 07a01d7 Copy full SHA for 07a01d7
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ NC='\033[0m'
19
19
ASCII_L=" --│█│█"
20
20
ASCII_R=" │█│█--"
21
21
ASCII_LINE=" --------------------------------------------------------------"
22
- SCRIPVERSION=v1.0.2
22
+ SCRIPVERSION=v1.0.3
23
23
SCRIPT_GITHUB=https://api.github.com/repos/decenomy/mnscript/releases/latest
24
24
SCRIPT_FILE=` curl -s $SCRIPT_GITHUB | grep " browser_download_url.*decenomy.sh" | cut -d : -f 2,3 | tr -d \" | xargs`
25
25
NODEIP=$( curl --fail --retry 3 -s4 icanhazip.com)
31
31
32
32
# Header for menu screen.
33
33
header () {
34
+ version_script_check
35
+ echo
34
36
echo -e " ${BLUE}${BOLD}
35
37
\t\t ██████╗ ███╗ ███╗██╗ ██╗
36
38
\t\t ██╔══██╗████╗ ████║╚██╗ ██╔╝
@@ -2122,6 +2124,14 @@ function wallet_install_check() {
2122
2124
clear
2123
2125
}
2124
2126
2127
+ # Process for Prompting Information About a New Version of the Script.
2128
+ function version_script_check() {
2129
+ LATEST_VERSION=$( curl -s $SCRIPT_GITHUB | grep -oP ' (?<="tag_name": ")[^"]+' )
2130
+ if [ " $SCRIPTVERSION " != " $LATEST_VERSION " ]; then
2131
+ echo -e " ${RED} New script version available:${NC} $LATEST_VERSION "
2132
+ fi
2133
+ }
2134
+
2125
2135
# Process to upgrade script version.
2126
2136
function upgrade_script() {
2127
2137
cp decenomy decenomy_old
You can’t perform that action at this time.
0 commit comments