Remove annoying offline notice when forcing offline mode.

This commit is contained in:
Marco Vermeulen
2013-06-04 13:57:30 +01:00
parent c133d87b36
commit 88cde74d80
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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."