[packages/rpm-build-tools] return false

glen glen at pld-linux.org
Wed Mar 30 22:29:05 CEST 2016


commit 1a003a0ec8f2fdecc0db9b0fe097010521071b51
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 30 23:28:38 2016 +0300

    return false
    
    so could conditionally setup the prompt:
    
    . ~/rpm/packages/rpm-build-tools/bash-prompt.sh && PROMPT_COMMAND=__bash_prompt_command

 bash-prompt.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/bash-prompt.sh b/bash-prompt.sh
index ac09c25..539fbed 100644
--- a/bash-prompt.sh
+++ b/bash-prompt.sh
@@ -2,7 +2,7 @@
 # This code works known to work for bash
 
 # the code below requires bash 4.x, skip if earlier
-test ${BASH_VERSION%%.*} -lt 4 && return
+test ${BASH_VERSION%%.*} -lt 4 && return 1
 
 # To use it, source this file and set $PROMPT_COMMAND env var:
 # PROMPT_COMMAND=__bash_prompt_command
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/1a003a0ec8f2fdecc0db9b0fe097010521071b51



More information about the pld-cvs-commit mailing list