diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-27 20:45:24 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-27 20:45:24 (EDT) |
commit | 7d2facf954dd616242301750bb0a7e05a5abc542 (patch) | |
tree | 0ae7dd8b9c1d57c5656b4027ee69d98d1a53f447 | |
parent | b94b55e728aa4b8d9bcc8429b4249e0e64f6a240 (diff) | |
download | firman.sh-7d2facf954dd616242301750bb0a7e05a5abc542.zip firman.sh-7d2facf954dd616242301750bb0a7e05a5abc542.tar.gz firman.sh-7d2facf954dd616242301750bb0a7e05a5abc542.tar.bz2 |
dist_get_name(): New (static) function
-rw-r--r-- | src/dist.sh | 10 |
1 files changed, 9 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. -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() { |