wok diff busybox/stuff/command_not_found @ rev 21871
sarg: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 25 18:02:05 2019 +0200 (2019-09-25) |
parents | 7a22ba39ec41 |
children | def8459358ed |
line diff
1.1 --- a/busybox/stuff/command_not_found Wed Sep 25 11:06:27 2019 +0200 1.2 +++ b/busybox/stuff/command_not_found Wed Sep 25 18:02:05 2019 +0200 1.3 @@ -6,15 +6,14 @@ 1.4 gzip -9 >$LIST && chmod 666 $LIST 1.5 1.6 lookup() { 1.7 - zcat $LIST | grep "/$2$1$" | while read pkg file; do 1.8 + zcat $LIST | grep "/$2$1$" | if read pkg file; then 1.9 cat <<EOT 1.10 Command '$1' not found, but can be installed as root with: 1.11 1.12 tazpkg -gi ${pkg%:} 1.13 ${2:+$2$1} 1.14 EOT 1.15 - break 1.16 - done 1.17 + fi 1.18 } 1.19 1.20 MSG="$(lookup "$1")"