summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>2011-12-25 00:04:22 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>2011-12-25 00:04:22 +0000
commit8d9830fe5ca53a4e6655683ed7cad9753e42f575 (patch)
treefc601649de45249a51265b0f474f8de8ab6909c7 /python-updater
parentRename get_RESTRICT_PYTHON_ABIS() to get_ebuild_variable(). (diff)
downloadpython-updater-8d9830fe5ca53a4e6655683ed7cad9753e42f575.tar.gz
python-updater-8d9830fe5ca53a4e6655683ed7cad9753e42f575.tar.bz2
python-updater-8d9830fe5ca53a4e6655683ed7cad9753e42f575.zip
Check Bash version.
Diffstat (limited to 'python-updater')
-rwxr-xr-xpython-updater5
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=""