1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-20 19:31:58 +00:00

fix(installer): define $USER if not defined

Fixes missing $USER value in ArchLinux sh (bash)
This commit is contained in:
Marc Cornellà 2022-01-24 15:41:57 +01:00
parent c7221c5f25
commit 861805b64d
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

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