usr/bin/byobu-janitor: make sure this runs to completion, LP: #676605

This commit is contained in:
Dustin Kirkland 2010-11-18 19:32:29 -06:00
commit b13c13eea2
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View file

@ -2,6 +2,7 @@ byobu (3.10) unreleased; urgency=low
* usr/lib/byobu/custom: fix typo in for loop, LP: #673728, thanks for * usr/lib/byobu/custom: fix typo in for loop, LP: #673728, thanks for
the triage Jorge E. Gómez the triage Jorge E. Gómez
* usr/bin/byobu-janitor: make sure this runs to completion, LP: #676605
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 12 Nov 2010 22:45:25 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Fri, 12 Nov 2010 22:45:25 -0600

View file

@ -30,7 +30,7 @@ FLAG="$RUN/$PKG.reload-required"
# Let's get prepped to switch over to XDG one day; maintain symlink for now # Let's get prepped to switch over to XDG one day; maintain symlink for now
mkdir -p "$XDG" mkdir -p "$XDG"
if [ -d "$DATA" ] && [ ! -h "$DATA" ]; then if [ -d "$DATA" ] && [ ! -h "$DATA" ]; then
mv -f "$DATA"/* "$DATA"/.* "$XDG" 2>/dev/null mv -f "$DATA"/* "$DATA"/.* "$XDG" 2>/dev/null || true
rmdir "$DATA" rmdir "$DATA"
fi fi
ln -sf "$XDG" "$DATA" ln -sf "$XDG" "$DATA"