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

Fixes missing $USER value in ArchLinux sh (bash)
parent c7221c5f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment