mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* usr/bin/byobu-janitor, usr/bin/byobu-launcher-uninstall,
usr/lib/byobu/.constants, usr/lib/byobu/disk_io: - move the MacOSX support to constants
This commit is contained in:
parent
657e1f3824
commit
ed4a118ca3
5 changed files with 7 additions and 7 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -85,6 +85,9 @@ byobu (4.18) unreleased; urgency=low
|
|||
usr/share/byobu/profiles/screenrc:
|
||||
- move byobu-statusd to the rc profiles, as we don't want to run again
|
||||
on profile reload
|
||||
* usr/bin/byobu-janitor, usr/bin/byobu-launcher-uninstall,
|
||||
usr/lib/byobu/.constants, usr/lib/byobu/disk_io:
|
||||
- move the MacOSX support to constants
|
||||
|
||||
[ James Spencer ]
|
||||
* usr/lib/byobu/.constants:
|
||||
|
|
|
@ -33,9 +33,6 @@ fi
|
|||
# Set the rest of the variables
|
||||
DEFAULT_PROFILE="light"
|
||||
PROFILE="$BYOBU_CONFIG_DIR/profile"
|
||||
# Use gsed on non-Linux OS's
|
||||
command -v gsed >/dev/null && SED="gsed" || SED="sed"
|
||||
command -v greadlink >/dev/null && READLINK="greadlink" || READLINK="readlink"
|
||||
|
||||
# Create byobu-exchange buffer file, with secure permissions, if it doesn't exist
|
||||
[ -e "$BYOBU_RUN_DIR/printscreen" ] || install -m 600 /dev/null "$BYOBU_RUN_DIR/printscreen"
|
||||
|
|
|
@ -22,9 +22,6 @@ PKG="byobu"
|
|||
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX
|
||||
. "${BYOBU_PREFIX}/lib/${PKG}/.common"
|
||||
|
||||
# Use gsed on non-Linux OS's
|
||||
which gsed 2>/dev/null && SED="gsed" || SED="sed"
|
||||
|
||||
remove_launcher() {
|
||||
dest=$1
|
||||
if [ -w "$dest" ]; then
|
||||
|
|
|
@ -58,3 +58,7 @@ case "$BYOBU_BACKEND" in
|
|||
BYOBU_ARG_VERSION="-v"
|
||||
;;
|
||||
esac
|
||||
|
||||
# MacOS Support
|
||||
command -v gsed >/dev/null && SED="gsed" || SED="sed"
|
||||
command -v greadlink >/dev/null && READLINK="greadlink" || READLINK="readlink"
|
||||
|
|
|
@ -31,7 +31,6 @@ __disk_io_detail() {
|
|||
getdisk() {
|
||||
local t=""
|
||||
if [ -L "${1}" ]; then
|
||||
command -v greadlink >/dev/null && READLINK=greadlink || READLINK=readlink
|
||||
t=$($READLINK -f "$1")
|
||||
else
|
||||
t="$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue