Pārlūkot izejas kodu

remove the option of sourcing manage.sh

Noémi Ványi 7 gadus atpakaļ
vecāks
revīzija
4c995c4201
1 mainītis faili ar 0 papildinājumiem un 8 dzēšanām
  1. 0
    8
      manage.sh

+ 0
- 8
manage.sh Parādīt failu

3
 BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
3
 BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
4
 export PATH="$BASE_DIR/node_modules/.bin":$PATH
4
 export PATH="$BASE_DIR/node_modules/.bin":$PATH
5
 
5
 
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
-
14
 # subshell
6
 # subshell
15
 PYTHONPATH="$BASE_DIR"
7
 PYTHONPATH="$BASE_DIR"
16
 SEARX_DIR="$BASE_DIR/searx"
8
 SEARX_DIR="$BASE_DIR/searx"