Merge pull request #1355 from asciimoo/manage.sh

manage.sh : minor change
This commit is contained in:
Adam Tauber 2018-08-19 13:17:14 +02:00 committed by GitHub
commit 1767970ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -1,15 +1,17 @@
#!/bin/sh
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
export PATH="$BASE_DIR/node_modules/.bin":$PATH
cd -- "$BASE_DIR"
set -e
export PATH="$(npm bin)":$PATH
# subshell
PYTHONPATH="$BASE_DIR"
SEARX_DIR="$BASE_DIR/searx"
ACTION="$1"
cd -- "$BASE_DIR"
set -e
#
# Python