tazwok diff chroot-scripts/clean-chroot @ rev 559
tazwok: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 11:24:59 2021 +0000 (2021-11-09) |
parents | 35ceb7fc85e0 |
children |
line diff
1.1 --- a/chroot-scripts/clean-chroot Fri Feb 18 18:13:38 2011 +0100 1.2 +++ b/chroot-scripts/clean-chroot Tue Nov 09 11:24:59 2021 +0000 1.3 @@ -3,6 +3,6 @@ 1.4 # Remove packages which was not in the chroot at creation time. 1.5 for pkg in $(ls /var/lib/tazpkg/installed); do 1.6 [ -d /var/lib/tazpkg/installed/$pkg ] || continue 1.7 - [ "$(grep ^$pkg$ /var/lib/tazpkg/chroot-pkgs)" ] || tazpkg remove $pkg --auto 1.8 + grep -q ^$pkg$ /var/lib/tazpkg/chroot-pkgs || tazpkg remove $pkg --auto 1.9 done 1.10 exit 0