Commit b8bc3c60 authored by Vitaly Lipatov's avatar Vitaly Lipatov

returns 22 if install list is empty (2 is used for syntax error)

parent 32958c71
......@@ -221,7 +221,7 @@ epm_install()
local names="$(echo $pkg_names | filter_out_installed_packages)"
local files="$(echo $pkg_files | filter_out_installed_packages)"
[ -z "$files$names" ] && echo "Skip empty install list" && return 2
[ -z "$files$names" ] && echo "Skip empty install list" && return 22
epm_install_names $names || return
epm_install_files $files
......
......@@ -70,7 +70,7 @@ _epm_do_simulate()
epm_simulate()
{
[ -z "$pkg_filenames" ] && echo "Skip empty list" && return 2
[ -z "$pkg_filenames" ] && echo "Skip empty list" && return 22
local filenames="$(echo $pkg_filenames | filter_out_installed_packages)"
......
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