From: SangYoun Kwak Date: Thu, 2 Nov 2023 07:22:08 +0000 (+0900) Subject: scripts: Fix to not skip some option parameters for rpi4 fusing script X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=225a6dfb44c6f8dbcc1a505d9cb5912e9079cad5;p=platform%2Fkernel%2Fu-boot.git scripts: Fix to not skip some option parameters for rpi4 fusing script The option '--update' can take no argument or one argument('b') but its parsing script does 'shift' even it takes no argument. It is fixed by doing 'shift' only if there is a valid argument('b'). The option '--skip-resize' takes no argument but the parsing script does 'shift'. It is fixed by removing 'shift'. Change-Id: Iaf40a86ca7999eb8d0da22e0c14e384fb0cb4826 Signed-off-by: SangYoun Kwak --- diff --git a/scripts/tizen/sd_fusing_rpi4.sh b/scripts/tizen/sd_fusing_rpi4.sh index 947a326..648f188 100755 --- a/scripts/tizen/sd_fusing_rpi4.sh +++ b/scripts/tizen/sd_fusing_rpi4.sh @@ -578,14 +578,13 @@ while test $# -ne 0; do --update) if [ "$1" == "b" ] ; then ab_option=2 + shift else ab_option=1 fi - shift ;; --skip-resize) SKIP=1 - shift ;; *) if [ $binary_option == 1 ];then