aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonghyu Ban <yonghyu@empo.im>2021-07-06 16:13:59 +0900
committerDaniel Golle <daniel@makrotopia.org>2021-07-18 19:37:30 +0100
commit7270d768da6a30d6d47b33a6365d6fb5fda8d745 (patch)
treeba367c05cf80c9864d9426991d7dff2b7c366144
parentcda668e0468a6e233f67e5fb895b02bf2d631a0b (diff)
downloadupstream-7270d768da6a30d6d47b33a6365d6fb5fda8d745.tar.gz
upstream-7270d768da6a30d6d47b33a6365d6fb5fda8d745.tar.bz2
upstream-7270d768da6a30d6d47b33a6365d6fb5fda8d745.zip
scripts/mkits.sh: Fix the hash algorithm paramter
The mkits.sh script help message states hash algorithm can be specified using the -H command-line option, but it does not work currently due to a bug in the script. This patch fixes this problem by changing the option from -S to -H and specify getopts parameter after it Signed-off-by: Yonghyu Ban <yonghyu@empo.im>
-rwxr-xr-xscripts/mkits.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mkits.sh b/scripts/mkits.sh
index 7533baf799..1add8087b0 100755
--- a/scripts/mkits.sh
+++ b/scripts/mkits.sh
@@ -46,7 +46,7 @@ LOADABLES=
DTOVERLAY=
DTADDR=
-while getopts ":A:a:c:C:D:d:e:f:i:k:n:o:O:v:r:S" OPTION
+while getopts ":A:a:c:C:D:d:e:f:i:k:n:o:O:v:r:H:" OPTION
do
case $OPTION in
A ) ARCH=$OPTARG;;
@@ -63,7 +63,7 @@ do
o ) OUTPUT=$OPTARG;;
O ) DTOVERLAY="$DTOVERLAY ${OPTARG}";;
r ) ROOTFS=$OPTARG;;
- S ) HASH=$OPTARG;;
+ H ) HASH=$OPTARG;;
v ) VERSION=$OPTARG;;
* ) echo "Invalid option passed to '$0' (options:$*)"
usage;;