refactoring to comply with standards

This commit is contained in:
Ari Mourao
2017-02-12 14:03:45 -02:00
parent 4eeb98772b
commit 7d9628d4f5
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ function __powerline_user_info_prompt {
local user_info=""
local color=${USER_INFO_THEME_PROMPT_COLOR}
if [[ "THEME_CHECK_SUDO" = true ]]; then
if [[ "${THEME_CHECK_SUDO}" = true ]]; then
if sudo -n uptime 2>&1 | grep -q "load"; then
color=${USER_INFO_THEME_PROMPT_COLOR_SUDO}
fi