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
1 changed files with 1 additions and 1 deletions

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