Merge "Fix missing log_error in update-iso.sh"
This commit is contained in:
commit
4a2ad530de
@ -47,6 +47,12 @@ function common_check_requirements {
|
||||
|
||||
local -i missing=0
|
||||
|
||||
which which >&/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
log_error "Unable to find 'which' utility. Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for req in ${required_utils[@]}; do
|
||||
which ${req} >&/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -17,6 +17,10 @@
|
||||
# Source shared utility functions
|
||||
source $(dirname $0)/stx-iso-utils.sh
|
||||
|
||||
function log_error {
|
||||
echo "$@" >&2
|
||||
}
|
||||
|
||||
function usage {
|
||||
cat <<ENDUSAGE
|
||||
Usage:
|
||||
|
Loading…
x
Reference in New Issue
Block a user