commit: 1767970ef9f6f2c940c73a9a9fc37bac1725db1b
parent: ecb7636a969093f0721ced5ed9d8e8dbac4102a8
Author: Adam Tauber <asciimoo@gmail.com>
Date: Sun, 19 Aug 2018 13:17:14 +0200
Merge pull request #1355 from asciimoo/manage.sh
manage.sh : minor change
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/manage.sh b/manage.sh
@@ -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