stagefiles: avoid stagename in required error

the name of the stage is already printed earlier in the output prior to
the error here being printed. so the error really does not need to include
the script name itself.
This commit is contained in:
Lyndon Brown 2020-03-14 04:33:23 +00:00
parent ea0f6b7810
commit 3bed138fda
1 changed files with 2 additions and 5 deletions

View File

@ -82,13 +82,10 @@ Require_stagefile ()
return 0
fi
local NAME
NAME="$(basename ${0})"
if [ $# -eq 1 ]; then
Echo_error "%s requires stage: %s" "${NAME}" "${FILE}"
Echo_error "the following stage is required to be completed first: %s" "${FILE}"
else
Echo_error "%s requires the following stages: %s" "${NAME}" "$(echo ${@})"
Echo_error "the following stages are required to be completed first: %s" "$(echo ${@})"
fi
exit 1