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