Change-Id: I489345f8fcb8f7aff2ed03cc2460862751940b8d
local color=$1
local message=$2
- tput setaf $color
- tput bold
echo ""
echo $message
- tput sgr 0
}
function fusing_image () {
function check_args () {
if [ "$DEVICE" == "" ]; then
- echo "$(tput setaf 1)$(tput bold)- Device node is empty!"
+ echo "Device node is empty!"
show_usage
- tput sgr 0
exit 0
fi
if [ "$FORMAT" == "1" ]; then
echo ""
- echo "$(tput setaf 3)$(tput bold)$DEVICE will be formatted, Is it OK? [y/n]"
- tput sgr 0
+ echo "$DEVICE will be formatted, Is it OK? [y/n]"
read input
if [ "$input" == "y" ] || [ "$input" == "Y" ]; then
FORMAT=2