mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 10:46:58 -07:00
Merge 05591ab13d
into 34ca6fec92
This commit is contained in:
commit
114e488583
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ PKG="byobu"
|
|||
# All sorts of things go wrong if you don't own your $HOME dir.
|
||||
# This happens under sudo, if you don't use the -H option; Byobu will
|
||||
# create a bunch of files in your $HOME which will be owned by root.
|
||||
if [ ! -O "$HOME" ]; then
|
||||
echo "Cannot run $PKG because [$USER] does not own [$HOME]" 1>&2
|
||||
if [ ! -O "$HOME" ] && [ ! -O "$HOME/.profile" ]; then
|
||||
echo "Cannot run $PKG because [$USER] does not own [$HOME] or [$HOME/.profile]" 1>&2
|
||||
if [ -n "$SUDO_USER" ]; then
|
||||
echo "To run $PKG under sudo, you MUST use 'sudo -H'" 1>&2
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue