From 52a481ff804ec7ace6b40872ca82d97149a13854 Mon Sep 17 00:00:00 2001 From: Shubham Vishwakarma <43336210+Shubhamvis98@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:35:16 +0530 Subject: [PATCH] update --- funcs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/funcs.sh b/funcs.sh index 2832314..a7ddfc2 100644 --- a/funcs.sh +++ b/funcs.sh @@ -84,3 +84,8 @@ cleanup() { rm -rf ${ROOTFS} ./partuuid losetup -d ${LOOP} } + +trap ctrl_c INT +ctrl_c() { + exit 1 +} \ No newline at end of file