From bf8e39046a0e19f7b2868e97d46d673b401f7b1f Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 15 Jun 2023 15:09:57 +1000 Subject: [PATCH] tell sed which file --- rename-e-smith-pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index bf471fe..69b8d11 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -281,7 +281,7 @@ sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec" if [[ $TARGETPKG == "smeserver-grub" ]] ; then sed -i '/^Source1:/d' "$TARGETPKG.spec" sed -i '/^Source2:/d' "$TARGETPKG.spec" - sed -e '/^%setup/{n;N;N;N;d}' + sed -i '/^%setup/{n;N;N;N;d}' "$TARGETPKG.spec" sed -i '/\[SME: 12359\]/a - Remove Source1 & Source2' "$TARGETPKG.spec" fi if [[ $TARGETPKG == "smeserver-lib" ]] ; then