mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(installer): define $USER if not defined
Fixes missing $USER value in ArchLinux sh (bash)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user