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 %}
Обновление репозиториев