mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* bin/updates_available: drop "cat", and just use grep, performance
improvement Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
a71dbba4c2
commit
c0fb7caa2d
2 changed files with 4 additions and 2 deletions
|
@ -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
4
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue