Commit 32750982 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack generic-tar.sh: add some quotes

parent 8df2244a
......@@ -25,17 +25,17 @@ PRODUCT="$(echo "$alpkg" | sed -e "s|[-_.]$VERSION.*||")"
# VERSION="$(echo "$woext" " | sed -e "s|^$PKGNAME[-_.]||")"
#fi
pkgtype="$(erc type $alpkg)"
PKGNAME=$PRODUCT-$VERSION.$pkgtype
pkgtype="$(erc type "$alpkg")"
PKGNAME="$PRODUCT-$VERSION.$pkgtype"
if [ "$pkgtype" = "tar" ] || [ "$pkgtype" = "tar.gz" ] || [ "$pkgtype" = "tgz" ] ; then
# just rename supported formats
if [ "$alpkg" != "$PKGNAME" ] ; then
mv $alpkg $PKGNAME
mv "$alpkg" "$PKGNAME"
fi
else
# converts directly unsupported formats
PKGNAME=$PRODUCT-$VERSION.tar
erc repack $alpkg $PKGNAME || fatal
PKGNAME="$PRODUCT-$VERSION.tar"
erc repack "$alpkg" "$PKGNAME" || fatal
fi
#if [ "$alpkg" != "$newalpkg" ] ; then
......
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