summarylogtreecommitdiffstats
path: root/install.sh.wrapper
diff options
context:
space:
mode:
authorClaudia Pellegrino2018-12-13 16:34:09 +0100
committerClaudia Pellegrino2018-12-13 16:58:52 +0100
commit47953ee60cb3e038d87633d337184bf44261462b (patch)
tree404d6f5c769b65920664d72b882ce8f41653e762 /install.sh.wrapper
parent28094eb9aa7ab086b4d16f2cc3a1e7c5c364320f (diff)
downloadaur-47953ee60cb3e038d87633d337184bf44261462b.tar.gz
Add support for `~/.bash_it/scripts` directory
Diffstat (limited to 'install.sh.wrapper')
-rwxr-xr-xinstall.sh.wrapper11
1 files changed, 3 insertions, 8 deletions
diff --git a/install.sh.wrapper b/install.sh.wrapper
index edffc24120d8..f698ccf204c0 100755
--- a/install.sh.wrapper
+++ b/install.sh.wrapper
@@ -1,17 +1,12 @@
#!/usr/bin/env sh
set -e
-if [[ "$(whoami)" != "$(logname 2>/dev/null)" ]]; then
+if [ "$(whoami)" != "$(
+ logname 2>/dev/null || echo "${USER:-${LOGNAME}}")" ]
+then
echo >&2
echo >&2 'This command will install files into your' \
'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