git: mkinitrd(8): Use getopts instead of getopt(1) for command options

Aaron LI aly at crater.dragonflybsd.org
Fri Jun 8 01:03:08 PDT 2018


commit e6d2b207c86b3715f2b17a04525b97d722da1a78
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jun 1 15:48:13 2018 +0800

    mkinitrd(8): Use getopts instead of getopt(1) for command options
    
    Use the shell built-in getopts to deal with command line options, which is
    more easier to use and allows whitespace in the option values.

Summary of changes:
 sbin/mkinitrd/mkinitrd.sh | 51 ++++++++++++++++++++++++++++++++++-------------
 1 file changed, 37 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e6d2b207c86b3715f2b17a04525b97d722da1a78


-- 
DragonFly BSD source repository


More information about the Commits mailing list