aboutsummaryrefslogtreecommitdiff
path: root/repo/.hook/ffmpeg-cuda
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2022-10-25 13:10:14 +0800
committerKunoiSayami <[email protected]>2022-10-25 13:10:14 +0800
commit978011b008721d66b12dd00f6fe552d39f7b4b70 (patch)
tree77a3c3ae87d3c83131a21837efe01ef1729fc642 /repo/.hook/ffmpeg-cuda
parent8aa2177d248e0a8d35ceb9355cc1d92f90a85aa0 (diff)
feat(script): Optimize hook and build script
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'repo/.hook/ffmpeg-cuda')
-rwxr-xr-xrepo/.hook/ffmpeg-cuda1
1 files changed, 1 insertions, 0 deletions
diff --git a/repo/.hook/ffmpeg-cuda b/repo/.hook/ffmpeg-cuda
index 6871a1d..4c0b6e5 100755
--- a/repo/.hook/ffmpeg-cuda
+++ b/repo/.hook/ffmpeg-cuda
@@ -1,3 +1,4 @@
#!/bin/bash
+grep "make -j" PKGBUILD && exit
sed -i 's/make$/make -j \$\(nproc\)\n/g' PKGBUILD
sed -i 's/make /make -j \$\(nproc\) /g' PKGBUILD \ No newline at end of file