summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2017-12-20 18:42:06 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2018-02-21 20:46:58 +0100
commit4c995c4201370a54f5c9bceb3c74cff63d0f1ff2 (patch)
treed8e931d447e4a0833a51ae5e375ce4ca4ccf5010
parent3ac578c0a8ea7d32c5f6302760c86d232ff29fa8 (diff)
downloadsearxng-4c995c4201370a54f5c9bceb3c74cff63d0f1ff2.tar.gz
searxng-4c995c4201370a54f5c9bceb3c74cff63d0f1ff2.zip
remove the option of sourcing manage.sh
-rwxr-xr-xmanage.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/manage.sh b/manage.sh
index cf31bb5e7..625b34558 100755
--- a/manage.sh
+++ b/manage.sh
@@ -3,14 +3,6 @@
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
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
PYTHONPATH="$BASE_DIR"
SEARX_DIR="$BASE_DIR/searx"