mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-select-profile: ensure that $DATA exists, LP: #697724
This commit is contained in:
parent
8894652902
commit
ab865a71a5
2 changed files with 2 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,6 @@
|
||||||
byobu (3.21) unreleased; urgency=low
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 03 Jan 2011 11:44:19 -0600
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
PKG="byobu"
|
PKG="byobu"
|
||||||
DATA="$HOME/.$PKG"
|
DATA="$HOME/.$PKG"
|
||||||
|
mkdir -p "$DATA"
|
||||||
[ -z "$BYOBU_PREFIX" ] && export BYOBU_PREFIX="/usr"
|
[ -z "$BYOBU_PREFIX" ] && export BYOBU_PREFIX="/usr"
|
||||||
export BYOBU_PREFIX
|
export BYOBU_PREFIX
|
||||||
[ -r "/etc/$PKG/socketdir" ] && . "/etc/$PKG/socketdir" || SOCKETDIR="/var/run/screen"
|
[ -r "/etc/$PKG/socketdir" ] && . "/etc/$PKG/socketdir" || SOCKETDIR="/var/run/screen"
|
||||||
|
@ -78,7 +79,6 @@ assert_symlink() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p "$DATA"
|
|
||||||
# If these files exist, they must be a symlink
|
# If these files exist, they must be a symlink
|
||||||
assert_symlink "$DATA/profile"
|
assert_symlink "$DATA/profile"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue