Commit c8822efe authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix for use package name list in quotes

parent cf871bc0
...@@ -302,14 +302,16 @@ check_option() ...@@ -302,14 +302,16 @@ check_option()
check_filenames() check_filenames()
{ {
local opt="$1" local opt
# files can be with full path or have extension via . for opt in $* ; do
if [ -f "$opt" ] && echo "$opt" | grep -q "[/\.]" ; then # files can be with full path or have extension via .
pkg_files="$pkg_files $opt" if [ -f "$opt" ] && echo "$opt" | grep -q "[/\.]" ; then
else pkg_files="$pkg_files $opt"
pkg_names="$pkg_names $opt" else
fi pkg_names="$pkg_names $opt"
quoted_args="$quoted_args \"$opt\"" fi
quoted_args="$quoted_args \"$opt\""
done
} }
FLAGENDOPTS= FLAGENDOPTS=
...@@ -319,6 +321,7 @@ for opt in "$@" ; do ...@@ -319,6 +321,7 @@ for opt in "$@" ; do
check_command $opt && continue check_command $opt && continue
check_option $opt && continue check_option $opt && continue
fi fi
# Note: will parse all params separately (no package names with spaces!)
check_filenames $opt check_filenames $opt
done done
......
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