summaryrefslogtreecommitdiffstats
path: root/src/action
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-27 20:30:52 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-27 20:30:52 (EDT)
commitb94b55e728aa4b8d9bcc8429b4249e0e64f6a240 (patch)
tree81326c5986ef023ff216952d0ae5da906806f223 /src/action
parent96a488d7a805cfb8e63fb2530c5e2eb00d4bf92a (diff)
downloadfirman.sh-b94b55e728aa4b8d9bcc8429b4249e0e64f6a240.zip
firman.sh-b94b55e728aa4b8d9bcc8429b4249e0e64f6a240.tar.gz
firman.sh-b94b55e728aa4b8d9bcc8429b4249e0e64f6a240.tar.bz2
do_update(): Handle mirror show_menu() output
Diffstat (limited to 'src/action')
-rw-r--r--src/action/update.sh5
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
}