fix(installer): define `$USER` if not defined

Fixes missing $USER value in ArchLinux sh (bash)
master
Marc Cornellà 4 years ago
parent c7221c5f25
commit 861805b64d
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 3
      tools/install.sh

@ -51,6 +51,9 @@ CHSH=${CHSH:-yes}
RUNZSH=${RUNZSH:-yes}
KEEP_ZSHRC=${KEEP_ZSHRC:-no}
# Sane defaults
USER=${USER:-$(whoami)}
command_exists() {
command -v "$@" >/dev/null 2>&1

Loading…
Cancel
Save