From fe728f02c981fc9a24f53611f3bdb036f4e87291 Mon Sep 17 00:00:00 2001 From: Jonathan Callen Date: Wed, 15 Jun 2011 08:09:29 -0400 Subject: [eclass] Bash 4.1 fails on ${var::-4}, replace with something that won't fail --- eclass/kde4-functions.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/kde4-functions.eclass') diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index cb5caead387..19bb3acbf17 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -461,7 +461,7 @@ _do_blocker() { fi local slot ver="$1" atom old_ver="unset" - [[ "$2" == *:3.5 ]] && old_ver=${2::-4} + [[ "$2" == *:3.5 ]] && old_ver=${2%:3.5} for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do # If no version was passed, or the version is greater than the maximum -- cgit v1.2.3