* usr/lib/byobu/custom: LP: #1255490

- ignore backup files, ending in ~
This commit is contained in:
Dustin Kirkland 2013-11-29 09:39:58 -06:00
commit 6a2ee1a8bf
2 changed files with 7 additions and 0 deletions

2
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Mon, 18 Nov 2013 12:31:12 -0600

View file

@ -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%%_*}