[packages/rpm-build-tools] bash 4 check (for ac)

glen glen at pld-linux.org
Wed Mar 30 22:25:42 CEST 2016


commit 5b76c9e3b204fc3d4d1da2d5b8e4aea399582958
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 30 23:24:58 2016 +0300

    bash 4 check (for ac)

 bash-prompt.sh | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/bash-prompt.sh b/bash-prompt.sh
index e17e65c..ac09c25 100644
--- a/bash-prompt.sh
+++ b/bash-prompt.sh
@@ -1,6 +1,9 @@
 # NOTE:
 # This code works known to work for bash
 
+# the code below requires bash 4.x, skip if earlier
+test ${BASH_VERSION%%.*} -lt 4 && return
+
 # 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/fb64f88ce1cae815085ad1bbba486d80cce254a1



More information about the pld-cvs-commit mailing list