From d4ce7250e2d7fbcd83b68aa6c24299b4e53f7933 Mon Sep 17 00:00:00 2001 From: itmodulo Date: Tue, 6 Feb 2024 23:18:45 +0100 Subject: [PATCH] Fix for --- .gitea/workflows/release_arm64v8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release_arm64v8.yml b/.gitea/workflows/release_arm64v8.yml index 1bdf2db..be0e1e5 100644 --- a/.gitea/workflows/release_arm64v8.yml +++ b/.gitea/workflows/release_arm64v8.yml @@ -42,7 +42,7 @@ jobs: run: | su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > repo.txt" su - runner -c "touch local.txt" - su - runner -c "cd srcpkgs && for i in ./* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 2)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> ~/local.txt; done" + su - runner -c "cd ~/srcpkgs; for i in ./* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 2)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> ~/local.txt; done" su - runner -c "grep -Fvxf repo.txt local.txt > missing.txt" su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' missing.txt" su - runner -c "for i in $(cat missing.txt | tac ); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' repo.txt; done;"