From 80fc80fe19af561909e1abf135f344a4663d0065 Mon Sep 17 00:00:00 2001 From: Ccode-lang <78437178+Ccode-lang@users.noreply.github.com> Date: Mon, 29 Nov 2021 19:56:25 -0700 Subject: [PATCH] Update sync_vm.sh --- build/sync_vm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/sync_vm.sh b/build/sync_vm.sh index a9d524d5..39b4b11a 100755 --- a/build/sync_vm.sh +++ b/build/sync_vm.sh @@ -16,14 +16,14 @@ exit # Comment this line out # sudo qemu-nbd -c dev/nbd0 ZealOS.qcow2 sudo partprobe /dev/nbd0 -sudo mount /dev/nbd0p1 /mnt +sudo mount /dev/nbd0p1 /tmp/zealtmp echo "Merging with src/" -sudo cp -r ../src/* /mnt/ +sudo cp -r ../src/* /tmp/zealtmp sudo sync echo "Files copied, unmounting" -sudo umount /mnt +sudo umount /tmp/zealtmp sudo qemu-nbd -d /dev/nbd0 -sudo rm /mnt/* -r +sudo rm /tmp/zealtmp/* -r sudo sync echo "finished." git status