commit cb58252

hovercats  ·  2026-02-12 00:32:47 +0000 UTC
parent 4d61ea0
clean up some curlybraces usage
1 files changed,  +3, -9
M rcpm
M rcpm
+3, -9
 1@@ -23,9 +23,7 @@ if (~ $#RCPM_CACHE 0) {
 2 	}
 3 }
 4 
 5-fn rcpm_help {
 6-	log 'Usage: rcpm b|c|d||h|i|l|m|s'
 7-}
 8+fn rcpm_help log {'Usage: rcpm b|c|d||h|i|l|m|s'}
 9 
10 fn dl_pkg {
11 	cd $RCPM_PATH/$pkg
12@@ -39,18 +37,14 @@ fn dl_pkg {
13 			curl -LK url -O
14 		}
15 	}
16-	if not {
17-		errexit 'Url file not found!'
18-	}
19+	if not errexit 'Url file not found!'
20 }
21 
22 fn chksum_pkg {
23 	cd $RCPM_PATH/$pkg
24 	dl_pkg
25 	if (test -f sha256) sha256sum -c sha256
26-	if not {
27-		errexit 'sha256 file not found, cannot verify sha256sum!'
28-	}
29+	if not errexit 'sha256 file not found, cannot verify sha256sum!'
30 }
31 
32 fn unpack_pkg {