diff options
author | 2011-12-25 00:04:22 +0000 | |
---|---|---|
committer | 2011-12-25 00:04:22 +0000 | |
commit | 8d9830fe5ca53a4e6655683ed7cad9753e42f575 (patch) | |
tree | fc601649de45249a51265b0f474f8de8ab6909c7 | |
parent | Rename get_RESTRICT_PYTHON_ABIS() to get_ebuild_variable(). (diff) | |
download | python-updater-8d9830fe5ca53a4e6655683ed7cad9753e42f575.tar.gz python-updater-8d9830fe5ca53a4e6655683ed7cad9753e42f575.tar.bz2 python-updater-8d9830fe5ca53a4e6655683ed7cad9753e42f575.zip |
Check Bash version.
-rwxr-xr-x | python-updater | 5 |
1 files changed, 5 insertions, 0 deletions
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="" |