From b94b55e728aa4b8d9bcc8429b4249e0e64f6a240 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 27 Oct 2015 20:30:52 -0400 Subject: do_update(): Handle mirror show_menu() output --- (limited to 'src/action') diff --git a/src/action/update.sh b/src/action/update.sh index 5db6230..3d897bc 100644 --- a/src/action/update.sh +++ b/src/action/update.sh @@ -56,7 +56,10 @@ do_update() done <<-EOF $(dist_get_mirrors) EOF - show_menu 'Select a mirror' "${@}" + i=$(show_menu 'Select a mirror' "${@}") + i=$(($i + 1)) + mirror_url="$(printf '%s ' ${mirror_urls} | cut -d ' ' -f ${i})" + info 'Mirror: %s' "${mirror_url}" return 0 } -- cgit v0.9.1