diff options
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-x | update-archlinux32-package | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package index 28190e5..6795598 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -205,7 +205,12 @@ case ${update_path} in repo_arch=$( git -C "${used_upstream_git_path}/${pkgname}/repos" archive HEAD -- 2>/dev/null | \ tar -t 2>/dev/null | \ - sed 's/^'"${repo}-"'//;t;d' | \ + sed -n ' + s/^'"${repo}-"'// + T + s@/$@@ + p + ' | \ head -n1 ) if [ -z "${repo_arch}" ]; then @@ -213,7 +218,12 @@ case ${update_path} in repo_arch=$( git -C "${used_upstream_git_path}/${pkgname}/repos" archive HEAD -- | \ tar -t | \ - sed 's/^'"${repo}-"'//;t;d' | \ + sed -n ' + s/^'"${repo}-"'// + T + s@/$@@ + p + ' | \ head -n1 ) fi |