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
# mean "we need a kernel".
pushd $RPM_BUILD_ROOT%{_libdir}/guestfs/supermin.d
sed 's/^kernel-.*/kernel/' < packages > packages-t
mv packages-t packages
sed -i 's/^kernel-.*/kernel/' packages
popd
# Guestfish colour prompts.