Commit 3d447f60 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use return instead of exit in functions

parent d4208c6b
...@@ -295,7 +295,7 @@ epm_remove() ...@@ -295,7 +295,7 @@ epm_remove()
if [ -z "$pkg_names" ] ; then if [ -z "$pkg_names" ] ; then
warning "no package(s) to remove." warning "no package(s) to remove."
exit 0 return
fi fi
# remove according current arch (if x86_64) by default # remove according current arch (if x86_64) by default
pkg_names="$(echo $pkg_names | exp_with_arch_suffix)" pkg_names="$(echo $pkg_names | exp_with_arch_suffix)"
......
...@@ -46,7 +46,7 @@ epm_upgrade() ...@@ -46,7 +46,7 @@ epm_upgrade()
[ -n "$verbose" ] && info "Packages to upgrade: $installlist" [ -n "$verbose" ] && info "Packages to upgrade: $installlist"
if [ -z "$installlist" ] ; then if [ -z "$installlist" ] ; then
warning "There is no installed packages for upgrade from task $*" warning "There is no installed packages for upgrade from task $*"
exit 22 return 22
fi fi
try_change_alt_repo try_change_alt_repo
......
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