Do not print newline after prompts for user interaction.
Reword some messages.
Change-Id: I53da243519860be91ef2cf1e240f084394982726
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
local -r device=/dev/`lsblk ${DEVICE} -o TYPE,KNAME | awk "/^${blktype}.*[a-z]${num}\$/ { print \\\$2 }"`
local -r bs=${PART_TABLE[${part_idx} * ${PART_TABLE_COL} + 2]}
else
- echo "Not supported binary: $fusing_img"
+ echo "Unsupported binary: $fusing_img"
return
fi
local REMOVABLE=`lsblk $DEVICE -nd -o RM | grep 1 | wc -l`
if [ "$REMOVABLE" == "0" ]; then
echo ""
- echo "$(tput setaf 3)$(tput bold)$DEVICE is not a removable disk, Is it OK? [y/<n>]"
+ echo -n "$(tput setaf 3)$(tput bold)$DEVICE is not a removable disk, Is it OK? [y/<n>] "
tput sgr 0
read input
if [ "$input" != "y" ] && [ "$input" != "Y" ]; then
local -r device=/dev/`lsblk ${DEVICE} -o TYPE,KNAME | awk "/^${blktype}.*[a-z]${num}\$/ { print \\\$2 }"`
local -r bs=${PART_TABLE[${part_idx} * ${PART_TABLE_COL} + 2]}
else
- echo "Not supported binary: $fusing_img"
+ echo "Unsupported binary: $fusing_img"
return
fi
local -r device=/dev/`lsblk ${DEVICE} -o TYPE,KNAME | awk "/^${blktype}.*[a-z]${num}\$/ { print \\\$2 }"`
local -r bs=${PART_TABLE_B[${part_idx} * ${PART_TABLE_COL} + 2]}
else
- echo "Not supported binary: $fusing_img"
+ echo "Unsupported binary: $fusing_img"
return
fi
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
local REMOVABLE=`lsblk $DEVICE -nd -o RM | grep 1 | wc -l`
if [ "$REMOVABLE" == "0" ]; then
echo ""
- echo "$(tput setaf 3)$(tput bold)$DEVICE is not a removable disk, Is it OK? [y/<n>]"
+ echo -n "$(tput setaf 3)$(tput bold)$DEVICE is not a removable disk, Is it OK? [y/<n>] "
tput sgr 0
read input
if [ "$input" != "y" ] && [ "$input" != "Y" ]; then
local -r device=/dev/`lsblk ${DEVICE} -o TYPE,KNAME | awk "/^${blktype}.*[a-z]${num}\$/ { print \\\$2 }"`
local -r bs=${PART_TABLE[${part_idx} * ${PART_TABLE_COL} + 2]}
else
- echo "Not supported binary: $fusing_img"
+ echo "Unsupported binary: $fusing_img"
return
fi
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
local REMOVABLE=`lsblk $DEVICE -nd -o RM | grep 1 | wc -l`
if [ "$REMOVABLE" == "0" ]; then
echo ""
- echo "$(tput setaf 3)$(tput bold)$DEVICE is not a removable disk, Is it OK? [y/<n>]"
+ echo -n "$(tput setaf 3)$(tput bold)$DEVICE is not a removable disk, Is it OK? [y/<n>] "
tput sgr 0
read input
if [ "$input" != "y" ] && [ "$input" != "Y" ]; then