Commit 077ed765 authored by Julian Ospald's avatar Julian Ospald 🍵

Fix command_exists for darwin

parent 689ff9e6
Pipeline #9567 passed with stage
in 6 minutes and 26 seconds
......@@ -589,6 +589,7 @@ command_exists() {
# @RETURNS: 0 if all command exists, non-zero otherwise
check_required_commands() {
_missing_commands=
mydistro=$(get_distro_alias "$(get_distro_name)")
for com in "$@" awk uname basename tar gzip mktemp dirname ; do
command_exists "${com}" || {
......@@ -606,10 +607,10 @@ check_required_commands() {
if [ -n "${_missing_commands}" ] ; then
printf "%s" "${_missing_commands}"
unset _missing_commands
unset _missing_commands mydistro
return 1
else
unset _missing_commands
unset _missing_commands mydistro
return 0
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment