summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-09-01 16:09:00 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2015-09-01 16:09:00 +0100
commit4599afe6f4f2cee4750b60357d7c9a733418f7e5 (patch)
tree1cac81b40589419bb52707c9578ac45a29315f36
parentb2f071304a6e16fa219514f656fec9c3161fd6d3 (diff)
downloadfirehose-4599afe6f4f2cee4750b60357d7c9a733418f7e5.tar.gz
Fix shell quoting in firehose.sh
Change-Id: I3ca847ada95e9aafe98b5f38452351897a4b48d3
-rwxr-xr-xfirehose.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/firehose.sh b/firehose.sh
index 4d272d3..1003141 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 "$@"
+exec "${MORPH}" firehose "$@"