From 6a2ee1a8bfd57677c865ab6936177cd36c32587c Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 29 Nov 2013 09:39:58 -0600 Subject: [PATCH] * usr/lib/byobu/custom: LP: #1255490 - ignore backup files, ending in ~ --- debian/changelog | 2 ++ usr/lib/byobu/custom | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 3734b0a7..23fffb97 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,8 @@ byobu (5.66) unreleased; urgency=low * usr/lib/byobu/updates_available: LP: #1255493 - fix updates_available for pkcon - Thanks, kealthou@gmail.com + * usr/lib/byobu/custom: LP: #1255490 + - ignore backup files, ending in ~ -- Dustin Kirkland Mon, 18 Nov 2013 12:31:12 -0600 diff --git a/usr/lib/byobu/custom b/usr/lib/byobu/custom index 1db44d2e..6071041a 100755 --- a/usr/lib/byobu/custom +++ b/usr/lib/byobu/custom @@ -28,7 +28,12 @@ __custom() { local i= output= for i in "$BYOBU_CONFIG_DIR/bin/"[0-9]*_*; do # Loop over custom scripts + # Ensure executable [ -x "$i" ] || continue + # Ignore vim backup files ending in ~ + case "$i" in + *~) continue ;; + esac local now="$(date +%s)" local script=${i##*/} local freq=${script%%_*}