* usr/lib/byobu/custom:

- ensure we clear the cache for custom scripts
This commit is contained in:
Dustin Kirkland 2014-07-26 20:25:37 -05:00
commit d30e42e012
2 changed files with 6 additions and 1 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ byobu (5.84) unreleased; urgency=medium
* usr/lib/byobu/include/dirs.in:
- make the custom scripts bin dir
* usr/lib/byobu/custom:
- ensure we clear the cache for custom scripts
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 26 Jul 2014 16:13:23 -0500

View file

@ -58,7 +58,10 @@ __custom() {
;;
esac
done
[ -n "$output" ] || return
if [ -z "$output" ]; then
rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/custom"*
return
fi
printf "$output" | $BYOBU_SED ':a;N;$!ba;s/\n//g'
}