Commit f9967c11 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: disabled globing around config sections

Shell globing disabled around the retrieval of section names (which
are ref patterns) to prevent matching file paths.
parent 5bbd5245
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -82,11 +82,13 @@ _normalise_ref ()
_get_config_section ()
{
	local sections prefix sec
	set -o noglob
	IFS=$'\n' sections=( `git config --list \
		| grep -e '^auto-build' \
		| sed -e 's/=.*//' -e 's/\.[^.]*$//' -e 's/^auto-build\.\?//' \
		| sort -ur
		` )
	set +o noglob
	{
		echo "Finding match for $1 in"
		printf "  %s\n" "${sections[@]}"