diff options
author | Erich Eckner <git@eckner.net> | 2016-04-18 13:17:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-18 13:17:45 +0200 |
commit | 5c5bda96d3cd91234fb622a10582c3446ed9533b (patch) | |
tree | 328ef7ee3f44fe9ccd3d1713d6141868f25a84fc /archPackagesUpdate | |
parent | 5b893cd0a62ac08b66c81a12dfaafdc0ef83688b (diff) | |
download | archlinuxewe-5c5bda96d3cd91234fb622a10582c3446ed9533b.tar.xz |
wirklich neuestes Remote-Package in archPackagesUpdate finden
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index f5c52ccf1..e0f6cacc2 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -2,7 +2,8 @@ # init variables tmpDir="$(mktemp -d /tmp/archive.XXXXXX)" -pkgDir="/srv/arch-mirror/arch/arch/archlinuxewe/os" +pkgDirBase="/srv/arch-mirror/arch/arch" +pkgDir="${pkgDirBase}/archlinuxewe/os" pkgSrcDir="$(dirname $(readlink -f -n "$0"))" [ "$(hostname)" == "rechenknecht" ] && \ [ "${pkgSrcDir}" == "${HOME}" ] && \ @@ -375,8 +376,7 @@ else # a modified official package offVer="$( \ - ssh paule@jeti100 'ls '"${pkgDir}"'/*/'"${paket}"'-*.pkg.tar.xz' | \ - xargs -n1 basename | \ + ssh paule@jeti100 'find '"${pkgDirBase}"' -type f -name "'"${paket}"'-*.pkg.tar.xz" -exec basename "{}" \; ' | \ sort -V | \ tail -n1 \ )" |