From: Łukasz Stelmach Date: Mon, 13 Sep 2021 15:25:54 +0000 (+0200) Subject: scripts: sd_fusing_rpi3: do not print new, when asking for a reply X-Git-Tag: accepted/tizen/unified/20221108.163909~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5ebc334a21a32cf1dcacc9347a3937eaa274f05;p=platform%2Fkernel%2Fu-boot.git scripts: sd_fusing_rpi3: do not print new, when asking for a reply 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 --- diff --git a/scripts/tizen/sd_fusing_rpi3.sh b/scripts/tizen/sd_fusing_rpi3.sh index f38f40d561..e7a7383bef 100755 --- a/scripts/tizen/sd_fusing_rpi3.sh +++ b/scripts/tizen/sd_fusing_rpi3.sh @@ -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/]" + echo -n "$(tput setaf 3)$(tput bold)$DEVICE will be formatted, Is it OK? [y/] " tput sgr 0 read input if [ "$input" == "y" ] || [ "$input" == "Y" ]; then