mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Catch error when deleting a disk
This commit is contained in:
parent
91117fb30d
commit
31c02550d3
1 changed files with 3 additions and 1 deletions
4
quickemu
4
quickemu
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
function disk_delete() {
|
||||
if [ -f "${disk_img}" ]; then
|
||||
if [ -e "${disk_img}" ]; then
|
||||
rm "${disk_img}"
|
||||
echo "SUCCESS! Deleted ${disk_img}"
|
||||
else
|
||||
echo "NOTE! ${disk_img} not found. Doing nothing."
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue