scripts: sd_fusing_rpi3: do not print new, when asking for a reply 15/272115/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 13 Sep 2021 15:25:54 +0000 (17:25 +0200)
committerŁukasz Stelmach <stlman@poczta.fm>
Wed, 9 Mar 2022 12:30:28 +0000 (13:30 +0100)
When printing prompt to ask users to confirm formatting of a card do
not print new line character after the message so users type their
response on the same line.

Change-Id: Ic53fcdd3b8ae3b4fe2c4259ab8e199f2fcc1bb2d
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing_rpi3.sh

index f38f40d..e7a7383 100755 (executable)
@@ -362,7 +362,7 @@ function check_args () {
 
        if [ "$FORMAT" == "1" ]; then
                echo ""
-               echo "$(tput setaf 3)$(tput bold)$DEVICE will be formatted, Is it OK? [y/<n>]"
+               echo -n "$(tput setaf 3)$(tput bold)$DEVICE will be formatted, Is it OK? [y/<n>] "
                tput sgr 0
                read input
                if [ "$input" == "y" ] || [ "$input" == "Y" ]; then