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