修复QEMU USER无法卸载问题

This commit is contained in:
2023-03-19 15:25:22 +08:00
parent 9d2a677f42
commit d26085b4f8
3 changed files with 15 additions and 14 deletions

View File

@@ -1,12 +1,11 @@
#!/bin/bash
# 判断是否有安装 Qemu User
which qemu-i386 > /dev/null
if [[ !$? ]]; then
echo安装 Qemu User按回车键后退出
if [[ ! $? ]]; then
echo安装 Qemu User按回车键后退出
read
exit 1
fi
sudo apt update
sudo apt purge qemu-user -y
echo 安装完成,按回车键后退出
read