diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/action/update.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |