Quote variables and backticks
Otherwise the script fails with spaces or asterisks in the directory path.
commit42debcfe3c34319dee46ef5faa9ce21baae484bf
authorJan Verbeek <ring@openmailbox.org>
dateTue 5 Jul 2016, 07:33 (10 years ago)
parent9f64fd6
manage.sh+1−1
@@ -1,6 +1,6 @@
11#!/bin/sh
22
3−BASE_DIR=$(dirname `readlink -f $0`)
3+BASE_DIR=$(dirname "`readlink -f "$0"`")
44PYTHONPATH=$BASE_DIR
55SEARX_DIR="$BASE_DIR/searx"
66ACTION=$1