From b4218de9b2ec2c8b5291f0e475fd21c920b9d1a6 Mon Sep 17 00:00:00 2001 From: Piraty Date: Sun, 24 Sep 2017 23:23:03 +0200 Subject: [PATCH] make -h option work for mkrootfs and mkplatformfs Closes: #133 [via git-merge-pr] --- mkplatformfs.sh.in | 2 +- mkrootfs.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mkplatformfs.sh.in b/mkplatformfs.sh.in index f737231..2f2e11c 100644 --- a/mkplatformfs.sh.in +++ b/mkplatformfs.sh.in @@ -72,7 +72,7 @@ _EOF BASEPKG=base-system -while getopts "b:p:k:c:C:r:x:h:V" opt; do +while getopts "b:p:k:c:C:r:x:hV" opt; do case $opt in b) BASEPKG="$OPTARG" ;; p) EXTRA_PKGS="$OPTARG" ;; diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index dc246a0..e6d6345 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -73,7 +73,7 @@ _EOF # Boilerplate option parsing. This script supports the bare minimum # needed to build an image. -while getopts "C:c:h:r:x:o:V" opt; do +while getopts "C:c:hr:x:o:V" opt; do case $opt in C) XBPS_CONFFILE="-C $OPTARG";; c) XBPS_CACHEDIR="--cachedir=$OPTARG";;