Commit 8289bb79 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add small fixes

parent 06080dd8
...@@ -416,6 +416,8 @@ check_option() ...@@ -416,6 +416,8 @@ check_option()
return 0 return 0
} }
# TODO: skip for commands where we don't need parse args
check_filenames() check_filenames()
{ {
local opt local opt
...@@ -431,7 +433,7 @@ check_filenames() ...@@ -431,7 +433,7 @@ check_filenames()
has_space "$opt" && warning "There are space(s) in URL '$opt', it is not supported. Skipped" && continue has_space "$opt" && warning "There are space(s) in URL '$opt', it is not supported. Skipped" && continue
pkg_urls="$pkg_urls $opt" pkg_urls="$pkg_urls $opt"
else else
has_space "$opt" && warning "There are space(s) in package name '$opt', it is not supported. Skipped" && continue has_space "$opt" && warning "There are space(s) in package name '$opt', it is not supported. Skipped." && continue
pkg_names="$pkg_names $opt" pkg_names="$pkg_names $opt"
fi fi
quoted_args="$quoted_args \"$opt\"" quoted_args="$quoted_args \"$opt\""
......
...@@ -24,7 +24,7 @@ load_helper epm-print ...@@ -24,7 +24,7 @@ load_helper epm-print
epm_whatdepends() epm_whatdepends()
{ {
local CMD local CMD
[ -n "$pkg_files" ] && fatal "whatdepends do not handle files" [ -n "$pkg_files" ] && fatal "whatdepends does not handle files"
[ -n "$pkg_names" ] || fatal "whatdepends: missing package(s) name" [ -n "$pkg_names" ] || fatal "whatdepends: missing package(s) name"
local pkg=$(print_name $pkg_names) local pkg=$(print_name $pkg_names)
......
...@@ -25,4 +25,4 @@ if [ "$(distro_info -d)" = "ALTLinux" ] ; then ...@@ -25,4 +25,4 @@ if [ "$(distro_info -d)" = "ALTLinux" ] ; then
fi fi
# TODO: there are more complex distro dependent url # TODO: there are more complex distro dependent url
epm install https://zoom.us/client/latest/zoom_$arch."$(distro_info -p)" epm --noscripts install "https://zoom.us/client/latest/zoom_$arch.$(distro_info -p)"
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