commit 1908404

hovercats  ·  2023-09-02 16:00:55 +0000 UTC
parent 27ed1ac
fix the loop
1 files changed,  +2, -2
M rcsm
M rcsm
+2, -2
 1@@ -9,9 +9,9 @@ fn usage {
 2 
 3 fn run {
 4 	if (test -z $2) {
 5-		for (serv in $basedir/run) {
 6+		for (serv in $basedir/run/*) {
 7 			test -x $serv || printf 'Servicefile not executable\n'
 8-			$basedir/run/$serv $1 >/dev/null >[1=2]  &
 9+			$serv $1 >/dev/null >[1=2]  &
10 		}
11 	}
12 	if not {