From 8d9830fe5ca53a4e6655683ed7cad9753e42f575 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 25 Dec 2011 00:04:22 +0000 Subject: Check Bash version. --- python-updater | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-updater b/python-updater index 6392b6e..600b327 100755 --- a/python-updater +++ b/python-updater @@ -20,6 +20,11 @@ # PKGS_MISSING = List of packages that are installed, but cannot be merged, # because they have been pruned from portage. +if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then + echo "Bash >=4.0 required" >&2 + exit 1 +fi + VERSION="0.9" OLD_PYTHON_VERSIONS="" OLD_PYTHON2_VERSIONS="" -- cgit v1.2.3-65-gdbad