From ea5551e41fc626aba61db710e72ad6c900fe0f2f Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Tue, 13 Jun 2023 16:39:10 +1000 Subject: [PATCH] check format of archivefilename --- rename-e-smith-pkg.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index e075466..702bab7 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -280,8 +280,9 @@ sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec" git add "$TARGETPKG.spec" #Delete archivefilename file if it follows the new standard -if [ -e archivefilename ] ; then git rm archivefilename $QUIET ; fi - +if [ -e archivefilename ] ; then + if [ $(cat archivefilename) == "$TARGETPKG-*.tar.gz" ] ; then git rm archivefilename $QUIET ; fi +fi #Update createlinks # - if there is an e-smith--update event rename to smeserver--update and add symlink