From 20630c8408909499cb25d600fccf2bbd8b054856 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 21 May 2021 10:06:56 +0200 Subject: [PATCH] Start script tweak --- start.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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