diff options
author | Claudia | 2017-06-17 21:00:23 +0200 |
---|---|---|
committer | Claudia Pellegrino | 2017-06-18 16:39:37 +0200 |
commit | f8f68da324e6f5d80cfa597f711fa3ac7bc1da2f (patch) | |
tree | b99d765edcf6c5b24f5c5fefd5442bcfce491c2b | |
parent | a70d83cb557e63e753281a2e4bc2b7a4560097f4 (diff) | |
download | aur-f8f68da324e6f5d80cfa597f711fa3ac7bc1da2f.tar.gz |
Advise user to detach from tmux session
-rwxr-xr-x | install.sh.wrapper | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/install.sh.wrapper b/install.sh.wrapper index 4eaa5bcdcaff..edffc24120d8 100755 --- a/install.sh.wrapper +++ b/install.sh.wrapper @@ -1,9 +1,17 @@ #!/usr/bin/env sh set -e -if [[ "$(whoami)" != "$(logname)" ]]; then +if [[ "$(whoami)" != "$(logname 2>/dev/null)" ]]; then + echo >&2 echo >&2 'This command will install files into your' \ - 'home directory. It must be run without sudo.' + 'home directory. It must be run *without* sudo.' + + if pacman -Q tmux >/dev/null 2>&1; then + echo >&2 'Also, this installer does *not* support tmux sessions.' + echo >&2 'Please detach from tmux; you can re-attach' \ + 'after this command has finished running.' + fi + exit 1 fi |