scripts: tizen: rpi4: If setting ansi color, clear it always 51/277051/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 30 Jun 2022 03:52:10 +0000 (12:52 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 30 Jun 2022 03:52:12 +0000 (12:52 +0900)
There is case not clearing ansi color. Clear it always.

Change-Id: I47695a7edc3250ce311aa052f16eb925704976f7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
scripts/tizen/sd_fusing_rpi4.sh

index 5fa27ff..e902e12 100755 (executable)
@@ -260,6 +260,7 @@ function mkpart_3 () {
 
        if [ $sfdisk_new == 0 ]; then
                echo "$(tput setaf 3)$(tput bold)NOTICE: Your sfdisk ${version[0]}.${version[1]}  version is too old. Update Latest sfdisk!"
+               tput sgr 0
                exit -1
        fi
 
@@ -500,7 +501,7 @@ function check_device () {
 
 function print_logo () {
        echo ""
-       echo "Raspberry Pi4 downloader, version 1.0.2"
+       echo "Raspberry Pi4 downloader, version 1.0.3"
        echo ""
 }