simplify using sed -i

This commit is contained in:
Thierry Vignaud 2020-11-11 21:22:08 +01:00 committed by Richard W.M. Jones
parent 7dba19275f
commit 1ece913403

View File

@ -907,8 +907,7 @@ popd
# On all known architectures, depending on 'kernel' should # On all known architectures, depending on 'kernel' should
# mean "we need a kernel". # mean "we need a kernel".
pushd $RPM_BUILD_ROOT%{_libdir}/guestfs/supermin.d pushd $RPM_BUILD_ROOT%{_libdir}/guestfs/supermin.d
sed 's/^kernel-.*/kernel/' < packages > packages-t sed -i 's/^kernel-.*/kernel/' packages
mv packages-t packages
popd popd
# Guestfish colour prompts. # Guestfish colour prompts.