From c34c80e368f8eb50fd7699fbda3cde883e62370c Mon Sep 17 00:00:00 2001 From: Alvaro Saurin Date: Mon, 17 Aug 2015 12:29:49 +0200 Subject: [PATCH 1/2] Use /bin/sh instead of /bin/bash so it can be used in boot2docker --- scope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scope b/scope index caf15ede3..e994702d4 100755 --- a/scope +++ b/scope @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -eu From 62a5fe364d5f3b97328b103b9a431373b9b0c0ab Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Mon, 17 Aug 2015 14:54:16 +0000 Subject: [PATCH 2/2] Remove bash-ism --- scope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scope b/scope index e994702d4..52ffba426 100755 --- a/scope +++ b/scope @@ -77,7 +77,7 @@ check_not_running() { # Run `weave expose` if it's not already exposed. weave_expose() { status=$(weave ps weave:expose | awk '{print $3}' 2>/dev/null) - if [ "$status" == "" ]; then + if [ "$status" = "" ]; then weave expose fi }