* bin/updates_available: drop "cat", and just use grep, performance

improvement


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-16 20:38:37 -05:00
commit c0fb7caa2d
2 changed files with 4 additions and 2 deletions

View file

@ -74,7 +74,7 @@ fi
if [ -r $mycache -a -O $mycache ]; then
diff=`expr $now - $mycache_timestamp`
if [ $diff -lt $EXPIRATION ]; then
print_updates `cat $mycache | grep "^[0-9]" | sed "s/ .*$//"`
print_updates `grep "^[0-9]" $mycache | sed "s/ .*$//"`
fi
else
# Otherwise, let's quickly clear the cache, and then recreate it with

4
debian/changelog vendored
View file

@ -30,8 +30,10 @@ byobu (2.12) unreleased; urgency=low
* bin/reboot-required: don't exit 1 when a reboot is not required
* bin/cpu-freq: drop "cat" and just use awk, don't printf twice,
performance improvements
* bin/updates_available: drop "cat", and just use grep, performance
improvement
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Jun 2009 20:28:35 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Jun 2009 20:38:21 -0500
byobu (2.11-0ubuntu1) karmic; urgency=low