simplify using sed -i
This commit is contained in:
parent
7dba19275f
commit
1ece913403
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user