mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Failure detection for curl
This commit is contained in:
parent
a6de8d21f0
commit
0b3653fe2d
@ -890,8 +890,13 @@ function show_version {
|
||||
MESSAGE="Running Version: ${VERSION}"
|
||||
echo_info
|
||||
|
||||
GITVERSION=$(curl -s https://raw.githubusercontent.com/vmstan/gravity-sync/master/VERSION)
|
||||
MESSAGE="Latest Version: ${GITVERSION}"
|
||||
GITVERSION=$(curl -sf https://raw.githubusercontent.com/vmstan/gravity-sync/master/VERSION)
|
||||
if [ -z "$GITVERSION" ]
|
||||
then
|
||||
MESSAGE="Latest Version: Unable to Check"
|
||||
else
|
||||
MESSAGE="Latest Version: ${GITVERSION}"
|
||||
fi
|
||||
echo_info
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user