diff --git a/start.sh b/start.sh index 913a609..18d07ef 100755 --- a/start.sh +++ b/start.sh @@ -6,8 +6,14 @@ start_bootloader() { qemu-system-x86_64 $bootloader } +compile() { + /usr/bin/bash $PWD/compile.sh +} + if test -f "$PWD/$bootloader"; then + rm $PWD/$bootloader + compile start_bootloader else - /usr/bin/bash $PWD/compile.sh && start_bootloader + compile && start_bootloader fi