~skiqqy/bin

e0a9799f9a07eb06691c00c7f9281939254f8603 — Stephen Cochrane a month ago 8e9452d
Tidy up goto
1 files changed, 2 insertions(+), 2 deletions(-)

M goto
M goto => goto +2 -2
@@ 44,11 44,11 @@ main()

	[ -z "$1" ] && usage 1

	dirs=( $(find . -regex ".*$1.*\.git" | sed -E 's|(.*)/\.git|\1|g') ) # I want splitting
	mapfile dirs < <(find . -regex ".*$1.*\.git" 2> /dev/null | sed -E 's|(.*)/\.git|\1|g')

	if "$all" && [ "${#dirs[@]}" -gt 1 ]
	then
		select dir in "${dirs[@]}"
		select dir in ${dirs[*]}
		do
			[ -n "$dir" ] && break
		done