commit cca9351
hovercats
·
2026-09-08 13:28:58 +0000 UTC
parent e72806e
clear $srcs beforehand, in the unlikely event its set by the user externally. also dont check for the number of arguments, only if its 1.
1 files changed,
+2,
-1
M
rcpm
M
rcpm
+2,
-1
1@@ -26,6 +26,7 @@ fn rcpm_help {log 'Usage: rcpm b|c|d||h|i|l|m|u|r|s'}
2
3 fn dl_pkg {
4 cd $RCPM_PATH/$pkg
5+ srcs=()
6 if (test -f .submodule) {
7 git submodule update --init --checkout src
8 git -C src clean -xfdq
9@@ -37,7 +38,7 @@ fn dl_pkg {
10 srcs=1
11 }
12 if (test -d files/) srcs=1
13- if (~ $#srcs 0) errexit 'No sources found'
14+ if (! ~ $srcs 1) errexit 'No sources found'
15 if not status=()
16
17 }