Merge pull request #25501 from lheckemann/stdenv-grep-range

stdenv: fix "grep: invalid range"
This commit is contained in:
Jörg Thalheim 2017-05-04 18:57:05 +01:00 committed by GitHub
commit 5fa8a5c760

View File

@ -61,7 +61,7 @@ _multioutConfig() {
local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")" local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")"
fi fi
# PACKAGE_TARNAME sometimes contains garbage. # PACKAGE_TARNAME sometimes contains garbage.
if [ -n "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z-_0-9]'; then if [ -n "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-]'; then
shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')" shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')"
fi fi
fi fi