mirror of https://github.com/searx/searx
remove the option of sourcing manage.sh
This commit is contained in:
parent
3ac578c0a8
commit
4c995c4201
|
@ -3,14 +3,6 @@
|
||||||
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
||||||
export PATH="$BASE_DIR/node_modules/.bin":$PATH
|
export PATH="$BASE_DIR/node_modules/.bin":$PATH
|
||||||
|
|
||||||
# the script can be sourced to update the PATH
|
|
||||||
# see https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced
|
|
||||||
if [ $_ != $0 ]; then
|
|
||||||
unset BASE_DIR
|
|
||||||
# sourced : exit now
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# subshell
|
# subshell
|
||||||
PYTHONPATH="$BASE_DIR"
|
PYTHONPATH="$BASE_DIR"
|
||||||
SEARX_DIR="$BASE_DIR/searx"
|
SEARX_DIR="$BASE_DIR/searx"
|
||||||
|
|
Loading…
Reference in New Issue