usr/bin/byobu-select-profile: ensure that $DATA exists, LP: #697724

This commit is contained in:
Dustin Kirkland 2011-01-05 10:27:32 -06:00
commit ab865a71a5
2 changed files with 2 additions and 2 deletions

2
debian/changelog vendored
View file

@ -1,6 +1,6 @@
byobu (3.21) unreleased; urgency=low
* UNRELEASED
* usr/bin/byobu-select-profile: ensure that $DATA exists, LP: #697724
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 03 Jan 2011 11:44:19 -0600

View file

@ -24,6 +24,7 @@
PKG="byobu"
DATA="$HOME/.$PKG"
mkdir -p "$DATA"
[ -z "$BYOBU_PREFIX" ] && export BYOBU_PREFIX="/usr"
export BYOBU_PREFIX
[ -r "/etc/$PKG/socketdir" ] && . "/etc/$PKG/socketdir" || SOCKETDIR="/var/run/screen"
@ -78,7 +79,6 @@ assert_symlink() {
fi
}
mkdir -p "$DATA"
# If these files exist, they must be a symlink
assert_symlink "$DATA/profile"