mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-31 17:53:09 -05:00
Remove annoying offline notice when forcing offline mode.
This commit is contained in:
@@ -30,7 +30,7 @@ function gvm {
|
||||
BROADCAST_LIVE=$(curl -s "${GVM_SERVICE}/broadcast/${GVM_VERSION}")
|
||||
fi
|
||||
|
||||
if [[ -z "${BROADCAST_LIVE}" && "${GVM_ONLINE}" == "true" ]]; then
|
||||
if [[ -z "${BROADCAST_LIVE}" && "${GVM_ONLINE}" == "true" && "$1" != "offline" ]]; then
|
||||
echo "${OFFLINE_BROADCAST}"
|
||||
fi
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@ Feature: Forced Offline Mode
|
||||
Scenario: Enable Offline Mode with internet reachable
|
||||
Given offline mode is disabled with reachable internet
|
||||
When I enter "gvm offline enable"
|
||||
Then I see "OFFLINE MODE ENABLED!"
|
||||
Then I see "Forced offline mode enabled."
|
||||
And I do not see "OFFLINE MODE ENABLED!"
|
||||
When I enter "gvm install grails 2.1.0"
|
||||
Then I see "Stop! grails 2.1.0 is not available in offline mode."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user