commit c593c1a
hovercats
·
2025-05-23 17:41:20 +0000 UTC
parent 04304e8
error out properly if sha256 file isnt found in chksum_pkg
1 files changed,
+6,
-2
M
rcpm
M
rcpm
+6,
-2
1@@ -28,7 +28,7 @@ fn dl_pkg {
2 }
3 }
4 if not {
5- printf 'url file not found\n'
6+ printf 'url file not found!\n'
7 exit 1
8 }
9 }
10@@ -36,7 +36,11 @@ fn dl_pkg {
11 fn chksum_pkg {
12 cd $RCPM_PATH/$pkg
13 dl_pkg
14- sha256sum -c sha256
15+ if (test -f sha256) sha256sum -c sha256
16+ if not {
17+ printf 'sha256 file not found, cannot verify sha256sum!\n'
18+ exit 1
19+ }
20 }
21
22 fn unpack_pkg {