[DRBD-cvs] r1586 - branches/drbd-0.6/scripts
svn at svn.drbd.org
svn at svn.drbd.org
Sun Oct 10 23:03:50 CEST 2004
Author: lars
Date: 2004-10-10 23:03:47 +0200 (Sun, 10 Oct 2004)
New Revision: 1586
Modified:
branches/drbd-0.6/scripts/drbd
Log:
seems like someone out there uses bash 3.x, and it still works :-)
Modified: branches/drbd-0.6/scripts/drbd
===================================================================
--- branches/drbd-0.6/scripts/drbd 2004-10-08 12:26:56 UTC (rev 1585)
+++ branches/drbd-0.6/scripts/drbd 2004-10-10 21:03:47 UTC (rev 1586)
@@ -81,7 +81,8 @@
set -e
# check for required bash features {{{2
-if ! [ "${BASH_VERSINFO[0]}" -ge 2 -a "${BASH_VERSINFO[1]//[^0-9]/}" -ge 2 ] ; then
+if [ "${BASH_VERSINFO[0]}" -lt 2 ] ||
+ [ "${BASH_VERSINFO[0]}" -eq 2 -a "${BASH_VERSINFO[1]//[^0-9]/}" -lt 2 ] ; then
echo "bash version is older than known to work."
echo " If it works despite of that, report as known good version to"
echo " $CONTACT"
More information about the drbd-cvs
mailing list