mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-30 16:35:31 +00:00
tests: Use "-f" on directory rm commands
When running the script from an interactive environment there are always some files inside the git directory that rm prompts to delete so instead pass "-f" to avoid that. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
7245cf7c5e
commit
71154d8362
@ -74,7 +74,7 @@ if [ ! -f "$VMLINUX_IMAGE" ]; then
|
||||
cp vmlinux $VMLINUX_IMAGE
|
||||
cp arch/x86/boot/bzImage $BZIMAGE_IMAGE
|
||||
popd
|
||||
rm -r $LINUX_CUSTOM_DIR
|
||||
rm -rf $LINUX_CUSTOM_DIR
|
||||
popd
|
||||
fi
|
||||
|
||||
@ -88,7 +88,7 @@ if [ ! -f "$VIRTIOFSD" ]; then
|
||||
make virtiofsd -j `nproc`
|
||||
cp virtiofsd $VIRTIOFSD
|
||||
popd
|
||||
rm -r $VIRTIOFSD_DIR
|
||||
rm -rf $VIRTIOFSD_DIR
|
||||
sudo setcap cap_sys_admin+epi "virtiofsd"
|
||||
popd
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user