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

fix using local with dash

parent 09eda972
......@@ -154,8 +154,8 @@ epm_install()
{
[ -n "$pkg_files$pkg_names" ] || fatal "Run install without packages"
local names=$(echo $pkg_names | filter_out_installed_packages)
local files=$(echo $pkg_files | filter_out_installed_packages)
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
......
......@@ -25,7 +25,7 @@ epm_simulate()
local CMD
[ -n "$pkg_filenames" ] || fatal "Run $epm_cmd without packages"
local filenames=$(echo $pkg_filenames | filter_out_installed_packages)
local filenames="$(echo $pkg_filenames | filter_out_installed_packages)"
# FIXME: can't correct receive status 2 in mandriva?
[ -z "$filenames" ] && echo "Skip empty simulate list" && return 0 #&& return 2
......
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