* usr/bin/byobu-janitor.in:

- Add fallback if the install command is not available
This commit is contained in:
Jeffery To 2019-05-27 03:18:06 +08:00
commit b10c7b6f65
2 changed files with 10 additions and 1 deletions

2
debian/changelog vendored
View file

@ -26,6 +26,8 @@ byobu (5.128) unreleased; urgency=medium
creating it)
* usr/bin/byobu.in:
- Use readlink if the tty command is not available
* usr/bin/byobu-janitor.in:
- Add fallback if the install command is not available
* usr/bin/byobu-launch.in:
- Don't autolaunch for ARM serial consoles
* usr/lib/byobu/disk_io:

View file

@ -41,7 +41,14 @@ DEFAULT_PROFILE="light"
PROFILE="$BYOBU_CONFIG_DIR/profile"
# 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"
if ! [ -e "$BYOBU_RUN_DIR/printscreen" ]; then
if eval $BYOBU_TEST install >/dev/null 2>&1; then
install -m 600 /dev/null "$BYOBU_RUN_DIR/printscreen"
else
cp /dev/null "$BYOBU_RUN_DIR/printscreen"
chmod 600 "$BYOBU_RUN_DIR/printscreen"
fi
fi
# Affects: users who launched using sudo, such that their config dir
# is not writable by them