AutoYADM commit: 2025-04-24 15:30:05
This commit is contained in:
parent
f0e1240b14
commit
bba4ee64b8
1 changed files with 5 additions and 4 deletions
|
@ -17,14 +17,15 @@ paru -Syu'
|
||||||
switch $response
|
switch $response
|
||||||
case y Y
|
case y Y
|
||||||
for cmd in $cmds
|
for cmd in $cmds
|
||||||
if string match -q paru $cmd
|
|
||||||
continue
|
|
||||||
end
|
|
||||||
# max 2 jobs at a time
|
# max 2 jobs at a time
|
||||||
while test (count (jobs -p)) -ge 2
|
while test (count (jobs -p)) -ge 2
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
end
|
end
|
||||||
$termcmd $cmd &>/dev/null &
|
if string match -q paru -- "$cmd"
|
||||||
|
$cmd
|
||||||
|
else
|
||||||
|
$termcmd $cmd &>/dev/null &
|
||||||
|
end
|
||||||
end
|
end
|
||||||
wait
|
wait
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue