diff --git a/debian/changelog b/debian/changelog index bac61944..176286c3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 26 Jul 2014 16:13:23 -0500 diff --git a/usr/lib/byobu/custom b/usr/lib/byobu/custom index ad6d9ad6..238f672d 100755 --- a/usr/lib/byobu/custom +++ b/usr/lib/byobu/custom @@ -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' }