summaryrefslogtreecommitdiff
path: root/manage.sh
diff options
context:
space:
mode:
authorJan Verbeek <ring@openmailbox.org>2016-07-05 07:33:43 +0000
committerJan Verbeek <ring@openmailbox.org>2016-07-05 07:33:43 +0000
commit42debcfe3c34319dee46ef5faa9ce21baae484bf (patch)
treef4a6352132297cc2e908f602276b71775fc9e4f2 /manage.sh
parent9f64fd674558db5f2bdb37676c41bf2f949dcc1f (diff)
downloadsearxng-42debcfe3c34319dee46ef5faa9ce21baae484bf.tar.gz
searxng-42debcfe3c34319dee46ef5faa9ce21baae484bf.zip
Quote variables and backticks
Otherwise the script fails with spaces or asterisks in the directory path.
Diffstat (limited to 'manage.sh')
-rwxr-xr-xmanage.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/manage.sh b/manage.sh
index 0a21f0eb3..9479e788e 100755
--- a/manage.sh
+++ b/manage.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-BASE_DIR=$(dirname `readlink -f $0`)
+BASE_DIR=$(dirname "`readlink -f "$0"`")
PYTHONPATH=$BASE_DIR
SEARX_DIR="$BASE_DIR/searx"
ACTION=$1