aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkerl4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerl b/kerl
index d65439c..8c630f0 100755
--- a/kerl
+++ b/kerl
@@ -332,7 +332,7 @@ do_build()
{
case "$KERL_SYSTEM" in
Darwin)
- if [ `gcc --version | grep llvm | wc -l` = "1" ]; then
+ if [ `gcc --version 2>/dev/null | grep -i llvm | wc -l` = "1" ]; then
if lion_support $1; then
KERL_CONFIGURE_OPTIONS="CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS"
else
@@ -456,7 +456,7 @@ kerl_deactivate()
fi
if [ -n "\$_KERL_ACTIVE_DIR" ]; then
unset _KERL_ACTIVE_DIR
- fi
+ fi
if [ -n "\$_KERL_SAVED_PS1" ]; then
PS1="\$_KERL_SAVED_PS1"
export PS1