logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 42debcfe3c34319dee46ef5faa9ce21baae484bf
parent 9f64fd674558db5f2bdb37676c41bf2f949dcc1f
Author: Jan Verbeek <ring@openmailbox.org>
Date:   Tue,  5 Jul 2016 07:33:43 +0000

Quote variables and backticks

Otherwise the script fails with spaces or asterisks in the directory path.

Diffstat:

Mmanage.sh2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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