Commit 9379c27c authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix $@ using for set vars (eterbug 15846)

parent 92e0c49c
...@@ -24,7 +24,7 @@ ALTLINUXPUBURL=http://ftp.altlinux.org/pub/distributions ...@@ -24,7 +24,7 @@ ALTLINUXPUBURL=http://ftp.altlinux.org/pub/distributions
__epm_addrepo_rhel() __epm_addrepo_rhel()
{ {
local repo="$@" local repo="$*"
if [ -z "$repo" ] ; then if [ -z "$repo" ] ; then
echo "Add repo." echo "Add repo."
echo "1. Use with repository URL, f.i. http://www.example.com/example.repo" echo "1. Use with repository URL, f.i. http://www.example.com/example.repo"
......
...@@ -299,7 +299,7 @@ __epm_if_command_path() ...@@ -299,7 +299,7 @@ __epm_if_command_path()
epm_install_files() epm_install_files()
{ {
local files="$@" local files="$*"
[ -z "$files" ] && return [ -z "$files" ] && return
# TODO: check read permissions # TODO: check read permissions
......
...@@ -140,7 +140,7 @@ case $PMTYPE in ...@@ -140,7 +140,7 @@ case $PMTYPE in
info "You need remove repo from /etc/pacman.conf" info "You need remove repo from /etc/pacman.conf"
;; ;;
npackd) npackd)
sudocmd npackdcl remove-repo --url="$@" sudocmd npackdcl remove-repo --url="$*"
;; ;;
winget) winget)
sudocmd winget source remove "$@" sudocmd winget source remove "$@"
......
...@@ -55,7 +55,7 @@ __epm_split_by_pkg_type() ...@@ -55,7 +55,7 @@ __epm_split_by_pkg_type()
__epm_repack_to_deb() __epm_repack_to_deb()
{ {
local pkg local pkg
local pkgs="$@" local pkgs="$*"
assure_exists alien assure_exists alien
assure_exists fakeroot assure_exists fakeroot
......
...@@ -77,7 +77,7 @@ EOF ...@@ -77,7 +77,7 @@ EOF
# move files to $PRODUCTDIR # move files to $PRODUCTDIR
move_to_opt() move_to_opt()
{ {
local from="$@" local from="$*"
if [ -z "$from" ] ; then if [ -z "$from" ] ; then
from="/usr/share/$PRODUCT" from="/usr/share/$PRODUCT"
[ -d "$BUILDROOT$from" ] || from="/usr/lib/$PRODUCT" [ -d "$BUILDROOT$from" ] || from="/usr/lib/$PRODUCT"
......
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