Commit 4f7634b7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add is_wildcard to the common place and use it

parent ad39ce71
......@@ -17,12 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# TODO: move to a common place and use
__is_wildcard()
{
echo "$1" | grep -q "[*?]"
}
__alt_mark_hold_package()
{
local pkg="$1"
......
......@@ -241,6 +241,12 @@ is_dirpath()
startwith "$1" "/"
}
is_wildcard()
{
echo "$1" | grep -q "[*?]" && return
echo "$1" | grep -q "\]" && return
echo "$1" | grep -q "\[" && return
}
filter_strip_spaces()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment