mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +00:00
scripts: implement error function
Implement function to log errors without exit. Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
e888ef5a60
commit
ad6e1a9d59
@ -6,10 +6,15 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
die()
|
error()
|
||||||
{
|
{
|
||||||
local msg="$*"
|
local msg="$*"
|
||||||
echo "ERROR: ${msg}" >&2
|
echo "ERROR: ${msg}" >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
die()
|
||||||
|
{
|
||||||
|
error "$*"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user