diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-01 15:14:58 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-01 15:14:58 +0100 |
commit | 355826e9e25f802718b0b53cd286b4e39c174aa3 (patch) | |
tree | cdabc193a77b57271a42ddcfd7f338905aaffcbe | |
parent | de600a20446bb844e6033d19a5aba73c20886504 (diff) | |
download | firehose-355826e9e25f802718b0b53cd286b4e39c174aa3.tar.gz |
Fix shell quoting in firehose.h
Change-Id: I67957e3cc539a1cae6488a19f32b371d0f7e5f75
-rwxr-xr-x | firehose.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firehose.sh b/firehose.sh index a61ba6c..109ef81 100755 --- a/firehose.sh +++ b/firehose.sh @@ -1,10 +1,10 @@ #!/bin/sh -MORPH="${MORPH:-$(which morph)}" +MORPH="${MORPH:-"$(which morph)"}" -BASE="$(dirname $0)" +BASE="$(dirname "$0")" BASE="${BASE:-.}" -BASE="$(realpath ${BASE})" +BASE="$(realpath "${BASE}")" # Currently the only way to get this to work is to hardcode the path of the plugin. # Obviously this is not ideal, but until a working method is obtained this remains @@ -18,4 +18,4 @@ PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}:" export PYTHONPATH -exec ${MORPH} firehose "$@" --config=/etc/firehose.conf +exec "${MORPH}" firehose "$@" --config=/etc/firehose.conf |