From d8721cd9d6d3e7e678ffaf6457155e3ca617e881 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Wed, 26 Mar 2014 02:16:33 +0400 Subject: [PATCH] removed ls function --- _posts/2014-03-23-creating-custom-repo.html | 9 +++++---- ru/_posts/2014-03-23-creating-custom-repo.html | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/_posts/2014-03-23-creating-custom-repo.html b/_posts/2014-03-23-creating-custom-repo.html index 3a41808..ab46faa 100644 --- a/_posts/2014-03-23-creating-custom-repo.html +++ b/_posts/2014-03-23-creating-custom-repo.html @@ -88,10 +88,11 @@ done

Creating the list of packages

{% highlight bash %} # creating packages list -i686_PACKAGES=$(/usr/bin/ls *.pkg.tar.xz | /usr/bin/grep "i686\|any") -x86_64_PACKAGES=$(/usr/bin/ls *.pkg.tar.xz | /usr/bin/grep "x86_64\|any") -echo "i686 packages: ${i686_PACKAGES}" -echo "x86_64 packages: ${x86_64_PACKAGES}" +cd "${PREPAREDIR}" +i686_PACKAGES=$(/usr/bin/find * -name "*-i686.pkg.tar.xz" -o -name "*-any.pkg.tar.xz") +x86_64_PACKAGES=$(/usr/bin/find * -name "*-x86_64.pkg.tar.xz" -o -name "*-any.pkg.tar.xz") +echo "=> i686 packages: \n${i686_PACKAGES}" +echo "=> x86_64 packages: \n${x86_64_PACKAGES}" {% endhighlight %}

Repository update

diff --git a/ru/_posts/2014-03-23-creating-custom-repo.html b/ru/_posts/2014-03-23-creating-custom-repo.html index 2426a30..92e21e4 100644 --- a/ru/_posts/2014-03-23-creating-custom-repo.html +++ b/ru/_posts/2014-03-23-creating-custom-repo.html @@ -89,10 +89,11 @@ done

Создание списка пакетов

{% highlight bash %} # creating packages list -i686_PACKAGES=$(/usr/bin/ls *.pkg.tar.xz | /usr/bin/grep "i686\|any") -x86_64_PACKAGES=$(/usr/bin/ls *.pkg.tar.xz | /usr/bin/grep "x86_64\|any") -echo "i686 packages: ${i686_PACKAGES}" -echo "x86_64 packages: ${x86_64_PACKAGES}" +cd "${PREPAREDIR}" +i686_PACKAGES=$(/usr/bin/find * -name "*-i686.pkg.tar.xz" -o -name "*-any.pkg.tar.xz") +x86_64_PACKAGES=$(/usr/bin/find * -name "*-x86_64.pkg.tar.xz" -o -name "*-any.pkg.tar.xz") +echo "=> i686 packages: \n${i686_PACKAGES}" +echo "=> x86_64 packages: \n${x86_64_PACKAGES}" {% endhighlight %}

Обновление репозиториев