From 96f7933f2ca75c6706a8445c65425a201dcbaddf Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Tue, 20 Feb 2018 03:28:05 +0100 Subject: [PATCH] Fix conditional check for NO_SPACE_PREFIX: --- home/dotfiles/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/dotfiles/profile b/home/dotfiles/profile index f84caa9..826a480 100644 --- a/home/dotfiles/profile +++ b/home/dotfiles/profile @@ -48,7 +48,7 @@ log() { done fi prefix=" " - if [ $NO_SPACE_PREFIX -gt 0 ]; then + if [ ${NO_SPACE_PREFIX:-0} -gt 0 ]; then prefix="" fi echo "$*" | while IFS= read -r line; do