on master help sign in
Merge pull request #1355 from asciimoo/manage.sh
1767970Adam Tauber
manage.sh+5−3
@@ -1,15 +1,17 @@
1#!/bin/sh
1#!/bin/sh
2
2
3BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
3BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
4+
5+cd -- "$BASE_DIR"
6+set -e
7+
4−export PATH="$BASE_DIR/node_modules/.bin":$PATH
8+export PATH="$(npm bin)":$PATH
5
9
6# subshell
10# subshell
7PYTHONPATH="$BASE_DIR"
11PYTHONPATH="$BASE_DIR"
8SEARX_DIR="$BASE_DIR/searx"
12SEARX_DIR="$BASE_DIR/searx"
9ACTION="$1"
13ACTION="$1"
10
14
11−cd -- "$BASE_DIR"
12−set -e
13
15
14#
16#
15# Python
17# Python