diff --git a/mnt.ps1 b/mnt.ps1 index f48c4e6a..52f29233 100644 --- a/mnt.ps1 +++ b/mnt.ps1 @@ -1,3 +1,6 @@ -copy -r -Force E:/* ~/Desktop/zenithos/src/ -del ~/Desktop/zenithos/*.iso -move ~/Desktop/zenithos/src/Tmp/MyDistro.ISO.C ~/Desktop/zenithos/Zenith-latest-$(get-date -Format "yyyy-MM-dd-HH_mm_ss").iso +$dir = "~\Projects\ZenithOS" +Remove-Item -Recurse -Force ${dir}\src\* +Copy-Item -Recurse -Force Z:/* ${dir}\src\ +Remove-Item ${dir}\*.iso +Move-Item ${dir}\src\Tmp\MyDistro.ISO.C ${dir}\Zenith-latest-$(Get-Date -Format "yyyy-MM-dd-HH_mm_ss").iso + diff --git a/vboxmnt.sh b/vboxmnt.sh index 82115232..4c16a80a 100755 --- a/vboxmnt.sh +++ b/vboxmnt.sh @@ -8,6 +8,6 @@ sudo cp -r /mnt/* src/ sudo umount /mnt sudo qemu-nbd -d /dev/nbd0 -sudo chown -R v:v src/* +sudo chown -R $USER:$USER src/* rm Zenith-latest* mv src/Tmp/MyDistro.ISO.C ./Zenith-latest-$(date +%Y-%m-%d-%H_%M_%S).iso