mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
No need to use both grep and awk here - just grep will do.
This commit is contained in:
parent
0aea938dea
commit
b59c007f85
@ -81,8 +81,7 @@ fi
|
||||
|
||||
cd "$TMP_DIR"
|
||||
|
||||
IMG_SIZE=$(qemu-img info "$TMP_IMG" | grep 'virtual size' | awk '{print int($3);}' | tr -d 'G')
|
||||
echo "IMAGE SIZE ====> ${IMG_SIZE}"
|
||||
IMG_SIZE=$(qemu-img info "$TMP_IMG" | awk '/virtual size/{print int($3);}' | tr -d 'G')
|
||||
|
||||
cat > metadata.json <<EOF
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user