summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudia2017-06-17 21:00:23 +0200
committerClaudia Pellegrino2017-06-18 16:39:37 +0200
commitf8f68da324e6f5d80cfa597f711fa3ac7bc1da2f (patch)
treeb99d765edcf6c5b24f5c5fefd5442bcfce491c2b
parenta70d83cb557e63e753281a2e4bc2b7a4560097f4 (diff)
downloadaur-f8f68da324e6f5d80cfa597f711fa3ac7bc1da2f.tar.gz
Advise user to detach from tmux session
-rwxr-xr-xinstall.sh.wrapper12
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