From a99d2a59c106134f615620a24c4fc97ff137cffd Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Tue, 13 Jun 2023 16:53:39 +1000 Subject: [PATCH] change e-smith to smeserver in archivefilename --- rename-e-smith-pkg.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index 702bab7..f6b79de 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -281,7 +281,11 @@ git add "$TARGETPKG.spec" #Delete archivefilename file if it follows the new standard if [ -e archivefilename ] ; then - if [ $(cat archivefilename) == "$TARGETPKG-*.tar.gz" ] ; then git rm archivefilename $QUIET ; fi + if [ $(cat archivefilename) == "$TARGETPKG-*.tar.gz" ] ; then + git rm archivefilename $QUIET + else + sed -i "s/e-smith/smeserver/g" archivefilename + fi fi #Update createlinks # - if there is an e-smith--update event rename to smeserver--update and add symlink