File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ NEW_VERSION=$(curl -s \
9
9
https://api.github.com/repos/dashpay/dash/releases/latest | \
10
10
jq -r ' .tag_name' | sed ' s/^v//' )
11
11
12
- if [[ $? -ne 0 || -z " $ NEW_VERSION" ]] ; then
13
- echo " Error: Unexpected response when retrieving the current Dash Core version. Received: $NEW_VERSION "
14
- else
15
- # Print the extracted values (for verification)
12
+ # Check if curl or jq failed, or if NEW_VERSION is null or empty
13
+ if [[ $? -ne 0 || -z " $NEW_VERSION " || " $NEW_VERSION " == " null " ]] ; then
14
+ echo " Error: Unexpected response when retrieving the current Dash Core version. Ignoring update. "
15
+ else # Print the extracted values (for verification)
16
16
echo " Extracted Version: $NEW_VERSION "
17
17
# git checkout -b v$NEW_VERSION-links # Uncomment to use locally
18
18
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ NEW_VERSION=$(curl -s \
9
9
https://api.github.com/repos/dashpay/dash-evo-tool/releases/latest | \
10
10
jq -r ' .tag_name' | sed ' s/^v//' )
11
11
12
- if [[ $? -ne 0 || -z " $NEW_VERSION " ]]; then
12
+ if [[ $? -ne 0 || -z " $NEW_VERSION " || " $NEW_VERSION " == " null " ]]; then
13
13
echo " Error: Unexpected response when retrieving the current version. Received: $NEW_VERSION "
14
14
else
15
15
# Print the extracted values (for verification)
You can’t perform that action at this time.
0 commit comments