shellcheck: quote grep subshell

This commit is contained in:
Jens Petersen 2024-06-07 21:09:02 +08:00
parent 5d2c1f68eb
commit 841dedc94b

View File

@ -34,7 +34,7 @@ if [ -n "${BASH_VERSION}" -a '(' "$PS1" = "[\u@\h \W]\\$ " -o "$PS1" = "\\s-\\v\
}
prompt_default_os() {
eval $(grep ANSI_COLOR /etc/os-release)
eval "$(grep ANSI_COLOR /etc/os-release)"
PROMPT_COLOR="$ANSI_COLOR"
PROMPT_DIR_COLOR="$1"
PROMPT_SEPARATOR=':'