yt-cli


Logs | Files | README | README | LICENSE | GitLab


1
commit c8f27ff9fa25606ed7e277a53cdf964503119db0
2
Author: Connor Etherington <[email protected]>
3
Date:   Fri May 26 10:05:25 2023 +0200
4
5
    Auto-Commit Update - 20230526
6
---
7
 Makefile | 7 +++----
8
 1 file changed, 3 insertions(+), 4 deletions(-)
9
10
diff --git a/Makefile b/Makefile
11
index 50659bd..da4ffba 100644
12
--- a/Makefile
13
+++ b/Makefile
14
@@ -5,10 +5,9 @@ INFO = $(shell uname -a)
15
 all: info
16
 
17
 yt-cli:
18
-	@cd usr/lib/node_modules/"${PKG}" && which yarn >/dev/null 2>&1 && yarn install || npm install
19
-	@! [ -d "${PKGDIR}"/usr/lib/node_modules/"${PKG}" ] && mkdir -p "${PKGDIR}"/usr/lib/node_modules/"${PKG}" || true
20
-	@cp -ar usr/lib/node_modules/"${PKG}" "${PKGDIR}"/usr/lib/node_modules/
21
-	@npm link "${PKGDIR}"/usr/lib/node_modules/"${PKG}"
22
+	@cd usr/lib/node_modules/"${PKG}" && \
23
+		npm install -g --unsafe-perm && \
24
+		npm link
25
 
26
 install: yt-cli
27