From 46fc0ad39f8d6be1a896d7afb7d28649aa6f989d Mon Sep 17 00:00:00 2001
From: Ryan Hancock <krhancoc@uwaterloo.ca>
Date: Thu, 24 Feb 2022 12:43:59 -0500
Subject: [PATCH] Don't remove parent directory config doesnt like this

---
 os161-container/helpers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os161-container/helpers.sh b/os161-container/helpers.sh
index dee1739..b3b6c6d 100755
--- a/os161-container/helpers.sh
+++ b/os161-container/helpers.sh
@@ -24,7 +24,7 @@ build_k_helper() {
 	cd $OS161_DIR
 	mkdir /os-compile 2> /dev/null
 	cp -r /kernel/kern/* $OS161_DIR/kern/
-	rm -rf $OS161_DIR/kern/compile 2> /dev/null
+	rm -rf $OS161_DIR/kern/compile/* 2> /dev/null
 	set -e
 	# Configure - step 1
 	echo "[CS350] $1 Configuring Kernel..."
-- 
GitLab