[Image] Use sudo when removing image cache dir

Change-Id: I8f73056e807c4b1bbfe4ee0bf32f2db22a376ed3
This commit is contained in:
Lingxian Kong 2020-09-22 11:09:02 +12:00
parent f31ac7463a
commit d808241a1f
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
function build_vm() {
exclaim "Actually building the image, this can take up to 15 minutes"
rm -rf ~/.cache/image-create
sudo rm -rf ~/.cache/image-create
local datastore_type=$1
local guest_os=$2