cdrom.eclass: Fix matching of entries with trailing /, bug #618344

This commit is contained in:
James Le Cuirot
2017-05-13 16:44:14 +01:00
parent 3848e805f8
commit a708ed788e

View File

@@ -281,7 +281,7 @@ _cdrom_glob_match() {
shopt -s extglob nocaseglob nullglob || die
# The first person to make this work without an eval wins a
# cookie. It breaks without it when spaces are present.
eval "ARRAY=( ${p} )"
eval "ARRAY=( ${p%\?()} )"
echo ${ARRAY[0]}
)
}