summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-10-23 16:25:03 -0700
committersersut <serdar@opscode.com>2013-10-23 16:25:03 -0700
commit7c3b78875b14b0441ce124ddd7d3aaade4887187 (patch)
tree95d8496970164dbd80bca609b9fde1891ae6b9e7
parentd0a42a2403915c8c15a0d84cb0793559e5cf23ea (diff)
parent769da0f37d1ed343fadce1b9a50633d751ee6e83 (diff)
downloadchef-7c3b78875b14b0441ce124ddd7d3aaade4887187.tar.gz
Merge branch 'lcg/fix-solaris-check' into 11-stable
-rw-r--r--lib/chef/knife/bootstrap/chef-full.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/knife/bootstrap/chef-full.erb b/lib/chef/knife/bootstrap/chef-full.erb
index 549ffaea8c..24ffca2c69 100644
--- a/lib/chef/knife/bootstrap/chef-full.erb
+++ b/lib/chef/knife/bootstrap/chef-full.erb
@@ -3,9 +3,10 @@ bash -c '
distro=`uname -s`
-if [ "X$distro" == "XSunOS" ]; then
- if [ -e "/usr/sfw/bin" ]; then
- export PATH=/usr/sfw/bin:$PATH
+if test "x$distro" = "xSunOS"; then
+ if test -d "/usr/sfw/bin"; then
+ PATH=/usr/sfw/bin:$PATH
+ export PATH
fi
fi