From d30e42e0126bad7a05cafeaa6adf14e78469e251 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 26 Jul 2014 20:25:37 -0500 Subject: [PATCH] * usr/lib/byobu/custom: - ensure we clear the cache for custom scripts --- debian/changelog | 2 ++ usr/lib/byobu/custom | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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' }