From 351319e17d30e7428d91bd17c36407b428b3dab2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 19 Aug 2013 18:37:04 +1200 Subject: Remove unnecessary quoting --- bash/bash_logout | 2 +- bash/bashrc.d/prompt.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/bash_logout b/bash/bash_logout index 4436082f..22014963 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -1,5 +1,5 @@ # Clear console if possible when logging out -if [[ "$SHLVL" = 1 ]] && command -v clear_console &>/dev/null; then +if ((SHLVL == 1)) && command -v clear_console &>/dev/null; then clear_console -q fi diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 7120deb7..85e21030 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -2,7 +2,7 @@ prompt() { # Variables for use only within this function - local -i ret="$?" + local -i ret=$? local color reset branch state info url root # What's done next depends on the first argument to the function -- cgit v1.2.3