1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-04 20:30:11 +01:00

Quote variables and backticks

Otherwise the script fails with spaces or asterisks in the directory path.
This commit is contained in:
Jan Verbeek 2016-07-05 07:33:43 +00:00
parent 9f64fd6745
commit 42debcfe3c

View File

@ -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