From 7d2facf954dd616242301750bb0a7e05a5abc542 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 27 Oct 2015 20:45:24 -0400 Subject: dist_get_name(): New (static) function --- (limited to 'src') diff --git a/src/dist.sh b/src/dist.sh index 0cf38a7..9293dc9 100644 --- a/src/dist.sh +++ b/src/dist.sh @@ -15,7 +15,15 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -dist_functions='get_name get_mirrors get_versions' +dist_functions='get_mirrors get_versions' + +dist_get_name() +{ + local dist="${1}" + shift 1 + + dist_${dist}_get_name +} select_dist() { -- cgit v0.9.1