From 937d875ed1eecf8a2f28cad7271db5a44f5129ca Mon Sep 17 00:00:00 2001 From: Pavak Paul Date: Thu, 21 Apr 2022 02:09:19 +0530 Subject: [PATCH] added a basic timer before deletion starts so one can terminate the script --- removegit.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/removegit.sh b/removegit.sh index 66d9bae..1459275 100644 --- a/removegit.sh +++ b/removegit.sh @@ -1,4 +1,16 @@ -echo "Removing everything related to the starter git repo" +echo "Removing everything related to the starter git repo in 5 seconds" +echo "You can press Ctrl+C to terminate this script before the deletion starts" + +sleep 1 +echo "Removing git repo in 4" +sleep 1 +echo "Removing git repo in 3" +sleep 1 +echo "Removing git repo in 2" +sleep 1 +echo "Removing git repo in 1" +sleep 1 +echo "Removing git repo now!" echo "Removing git..." rm -rf .git