mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
clean the cache file of extra text
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
8e3698a7a5
commit
d16041b8ea
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ fi
|
||||||
if [ -r $mycache -a -O $mycache ]; then
|
if [ -r $mycache -a -O $mycache ]; then
|
||||||
diff=`expr $now - $mycache_timestamp`
|
diff=`expr $now - $mycache_timestamp`
|
||||||
if [ $diff -lt $EXPIRATION ]; then
|
if [ $diff -lt $EXPIRATION ]; then
|
||||||
print_updates `cat $mycache`
|
print_updates `cat $mycache | grep "^[0-9]" | sed "s/ .*$//"`
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Otherwise, let's quickly clear the cache, and then recreate it with
|
# Otherwise, let's quickly clear the cache, and then recreate it with
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue