1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

Merge pull request #158 from return42/fix-node.clean

[fix] node.clean - ignore npm dependencies when npm is not installed
This commit is contained in:
Alexandre Flament 2021-06-20 07:20:38 +02:00 committed by GitHub
commit 0e3a87b73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
manage
View File

@ -313,6 +313,10 @@ node.env() {
}
node.clean() {
if ! required_commands npm 2>/dev/null; then
build_msg CLEAN "npm is not installed / ignore npm dependencies"
return 0
fi
build_msg CLEAN "locally installed npm dependencies"
( set -e
npm --prefix searx/static/themes/oscar run clean