Quote variables and backticks

Otherwise the script fails with spaces or asterisks in the directory path.
dependabot/pip/master/sphinx-6.1.3
Jan Verbeek 8 years ago
parent 9f64fd6745
commit 42debcfe3c

@ -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

Loading…
Cancel
Save