From 42debcfe3c34319dee46ef5faa9ce21baae484bf Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Tue, 5 Jul 2016 07:33:43 +0000 Subject: [PATCH] Quote variables and backticks Otherwise the script fails with spaces or asterisks in the directory path. --- manage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.sh b/manage.sh index 0a21f0eb..9479e788 100755 --- 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