diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-06-20 07:20:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-20 07:20:38 +0200 |
| commit | 0e3a87b73acecb085acf0ed6f00c1434e32227bd (patch) | |
| tree | 3631dd42bbfd991a41ebf1b491426ddb1d1f67d1 | |
| parent | eb6832eb95f064a9450f5658f3cee52d374c6a31 (diff) | |
| parent | a62e1123e27fe5582e3b8c96699b18a2cc2a224c (diff) | |
Merge pull request #158 from return42/fix-node.clean
[fix] node.clean - ignore npm dependencies when npm is not installed
| -rwxr-xr-x | manage | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |