mkefidisk.sh: Improve logging
authorDarren Hart <dvhart@linux.intel.com>
Wed, 16 Jul 2014 14:16:01 +0000 (14:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jul 2014 23:09:00 +0000 (00:09 +0100)
commitb8be97da0bedc6499ba93e47835d0a5218e27116
treee3d26a4abfd1ed05115628db5ac89d4ea1b2f39c
parent8756407b1841af9df07ca099a0d706f8db0f7862
mkefidisk.sh: Improve logging

Add logging functions: error, warn, info, and success, using tput to add
color highlighting.

Use these routines throughout the script, replacing echo statements and
adding "|| error" in several places to eliminate silent failures. Add a
simple exit block which checks for issues encountered while running.

(From OE-Core rev: b5a3f6465a7fd8e821b81da053bf7e11535f1652)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/mkefidisk.sh