зеркало из https://github.com/mozilla/labs-vcap.git
[dev_setup] Use -eq for arithmetic comparison
Double equal sign is Bashism for String pattern matching. Bang equal is also for string pattern matching. Change-Id: Ic5196a098e0cf44c1ed38ddf0ca6f1260bd8a76e
This commit is contained in:
Родитель
35afa2b424
Коммит
9ca1a2b697
|
@ -86,10 +86,10 @@ function run_cmd () {
|
|||
|
||||
# Check if we have access to the web
|
||||
which wget > /dev/null
|
||||
if [ $? == 0 ]; then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Checking web connectivity."
|
||||
wget -q -T 2 -t 2 -O - http://api.cloudfoundry.com/info | grep "Cloud Application Platform" > /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Giving up. Cannot connect to the web. Check your proxy settings if you are behind a proxy."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче