commit 5e4fdc9

hovercats  ·  2026-09-08 19:20:43 +0000 UTC
parent 36fb5e3
move check for RCPM_COMPRESSOR into its related function
1 files changed,  +1, -1
M rcpm
M rcpm
+1, -1
 1@@ -22,7 +22,6 @@ if (~ $#RCPM_CACHE 0) {
 2 		RCPM_CACHE=/home/$user/var/rcpm/bin
 3 	}
 4 }
 5-if (~ $#RCPM_COMPRESSOR 0) RCPM_COMPRESSOR=gzip
 6 
 7 fn dl_pkg {
 8 	cd $RCPM_PATH/$pkg
 9@@ -78,6 +77,7 @@ fn get_ver {
10 }
11 
12 fn rcpm_compressor {
13+	if (~ $#RCPM_COMPRESSOR 0) RCPM_COMPRESSOR=gzip
14 	switch($RCPM_COMPRESSOR) {
15 		case gzip
16 			tool=gzip