commit: ec62e00df97839a467c5a472b617354b861eb402
parent d51732c0e5e89f86abfe68718277a2e21b190103
Author: Alex <alex@al-f.net>
Date: Wed, 1 Aug 2018 11:53:08 +0200
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