fix(mkrootfs&mkimg): fix argument parser (#6)
This commit is contained in:
parent
ec4bad56d6
commit
218dcea615
2 changed files with 4 additions and 2 deletions
3
mkimg
3
mkimg
|
@ -10,6 +10,7 @@ colorize
|
|||
verbose=0
|
||||
use_fixed_password=0
|
||||
varbose_arg=
|
||||
rootfs="archriscv-$(date --rfc-3339=date).tar.zst"
|
||||
|
||||
show_help() {
|
||||
cat << EOF
|
||||
|
@ -43,7 +44,7 @@ parse-args() {
|
|||
;;
|
||||
p) password=$OPTARG
|
||||
;;
|
||||
r) rootfs=${OPTARG:-archriscv-$(date --rfc-3339=date).tar.zst}
|
||||
r) rootfs=$OPTARG
|
||||
;;
|
||||
*)
|
||||
show_help >&2
|
||||
|
|
3
mkrootfs
3
mkrootfs
|
@ -9,6 +9,7 @@ colorize
|
|||
|
||||
verbose=0
|
||||
varbose_arg=
|
||||
password='archriscv'
|
||||
|
||||
show_help() {
|
||||
cat << EOF
|
||||
|
@ -36,7 +37,7 @@ parse-args() {
|
|||
v) verbose=$((verbose+1))
|
||||
varbose_arg="--verbose"
|
||||
;;
|
||||
p) password=${OPTARG:-archriscv}
|
||||
p) password=$OPTARG
|
||||
;;
|
||||
*)
|
||||
show_help >&2
|
||||
|
|
Loading…
Add table
Reference in a new issue