summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alex@al-f.net>2018-08-01 11:53:08 +0200
committerAlex <alex@al-f.net>2018-08-01 11:53:08 +0200
commitec62e00df97839a467c5a472b617354b861eb402 (patch)
treef4fbfbb8eee99fb2b70c4e9917b565544f273ddb
parentd51732c0e5e89f86abfe68718277a2e21b190103 (diff)
downloadsearxng-ec62e00df97839a467c5a472b617354b861eb402.tar.gz
searxng-ec62e00df97839a467c5a472b617354b861eb402.zip
manage.sh : minor change
-rwxr-xr-xmanage.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/manage.sh b/manage.sh
index cf144f853..3bc77fec3 100755
--- 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