Closed jtimberman closed 10 years ago
Removing the surrounding quotes from the embedded backticks:
DIR="`cd -P "\`dirname "$SOURCE"\`" && pwd`"
Seems to work with ksh, dash, bash, and zsh.
DIR=`cd -P \`dirname $SOURCE\` && pwd`
The problem which I think the quotes were there to solve is when the resolved path contains special characters like spaces. None of the default methods for installing Chef's Ruby (at least) will end up with a space in the name.
@jtimberman I'll see about a release of busser tonight
Released in 0.6.1, engage the non-Linux support!
:heart:
While
/usr/bin/env sh
may resolve to Bourne shell or a Bourne-like shell on many platforms, it doesn't on Solaris/illumos systems, such as OmniOS.This causes the following error: