remove the option of sourcing manage.sh
commit4c995c4201370a54f5c9bceb3c74cff63d0f1ff2
authorNoémi Ványi <sitbackandwait@gmail.com>
dateWed 20 Dec 2017, 18:42 (9 years ago)
parent3ac578c
manage.sh−8
@@ -3,14 +3,6 @@
33BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
44export PATH="$BASE_DIR/node_modules/.bin":$PATH
55
6−# the script can be sourced to update the PATH
7−# see https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced
8−if [ $_ != $0 ]; then
9− unset BASE_DIR
10− # sourced : exit now
11− return
12−fi
13−
146# subshell
157PYTHONPATH="$BASE_DIR"
168SEARX_DIR="$BASE_DIR/searx"