Commit 371f2395 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fatal exit if assure_exists is failed

parent 05a6e2fc
...@@ -39,7 +39,7 @@ __epm_assure() ...@@ -39,7 +39,7 @@ __epm_assure()
info "Command $1 is exists: $compath" info "Command $1 is exists: $compath"
epm qf "$compath" epm qf "$compath"
fi fi
return return 0
fi fi
# TODO: use package name normalization # TODO: use package name normalization
......
...@@ -297,7 +297,7 @@ assure_exists() ...@@ -297,7 +297,7 @@ assure_exists()
load_helper epm-assure load_helper epm-assure
local package="$2" local package="$2"
[ -n "$package" ] || package="$(__get_package_for_command "$1")" [ -n "$package" ] || package="$(__get_package_for_command "$1")"
__epm_assure "$1" $package __epm_assure "$1" $package || fatal "Can't assure in '$1' command"
} }
# TODO: improve and drop! # TODO: improve and drop!
......
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