yt-cli


Logs | Files | README | README | LICENSE | GitLab


1
commit bfa6c53d6330c7e1ae28d92157080610ab50a6ae
2
Author: Connor Etherington <[email protected]>
3
Date:   Tue May 9 04:49:03 2023 +0200
4
5
    Auto-Commit Update - 20230509
6
---
7
 PKGBUILD | 5 ++++-
8
 1 file changed, 4 insertions(+), 1 deletion(-)
9
10
diff --git a/PKGBUILD b/PKGBUILD
11
index 32158da..df12ff2 100644
12
--- a/PKGBUILD
13
+++ b/PKGBUILD
14
@@ -32,9 +32,12 @@ package() {
15
   which yarn >/dev/null 2>&1 && yarn install || npm install
16
 
17
   cd ../../../../
18
+
19
   install -dm0755 "${pkgdir}"/usr/lib/node_modules/${pkgname}
20
-  install -Dm0755 usr/bin/* -t "${pkgdir}/usr/bin/"
21
   install -Dm0644 usr/share/licenses/${pkgname}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
22
+
23
+  [ -z `which ytcli` ] && install -Dm0755 usr/bin/* -t "${pkgdir}/usr/bin/" || install -Dm0755 usr/bin/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
24
+
25
   cp -ar usr/lib/node_modules/${pkgname}/* "${pkgdir}"/usr/lib/node_modules/${pkgname}
26
 
27
 }