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 #!/bin/sh
BASE_DIR=$(dirname `readlink -f $0`) BASE_DIR=$(dirname "`readlink -f "$0"`")
PYTHONPATH=$BASE_DIR PYTHONPATH=$BASE_DIR
SEARX_DIR="$BASE_DIR/searx" SEARX_DIR="$BASE_DIR/searx"
ACTION=$1 ACTION=$1