scripts: Fix to not skip some option parameters for rpi4 fusing script 15/300915/1 tizen_8.0
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 2 Nov 2023 07:22:08 +0000 (16:22 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 6 Nov 2023 02:56:21 +0000 (11:56 +0900)
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 <sy.kwak@samsung.com>
scripts/tizen/sd_fusing_rpi4.sh

index 947a326..648f188 100755 (executable)
@@ -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