commit 78f85ca
hovercats
·
2025-05-21 03:15:26 +0000 UTC
parent 3714ba6
improve chksum_pkg and dl_pkg functions. properly check if file is present before downloading. also no longer checksums twice if tarball is present
1 files changed,
+2,
-2
M
rcpm
M
rcpm
+2,
-2
1@@ -19,12 +19,12 @@ fn rcpm_help {
2
3 fn dl_pkg {
4 cd $RCPM_PATH/$pkg
5- curl -LK url -O
6+ test -f `{awk '{print $2}' sha256} || curl -LK url -O
7 }
8
9 fn chksum_pkg {
10 cd $RCPM_PATH/$pkg
11- if (! sha256sum -c sha256) dl_pkg
12+ dl_pkg
13 sha256sum -c sha256
14 }
15