From 0be7c27439b75a16cd340b4a72855a7cc6cec06a Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sat, 7 Oct 2023 16:59:12 -0400 Subject: guix strap done (hopefully) --- guix-strap/guix-log | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'guix-strap/guix-log') diff --git a/guix-strap/guix-log b/guix-strap/guix-log index 4583127..0d26853 100755 --- a/guix-strap/guix-log +++ b/guix-strap/guix-log @@ -8,3 +8,16 @@ EVENT() { printf "\x1b[95m>>> \x1b[0m\x1b[98m$1\n" } +CONFIRM="" + +confirm() { + if [ "$CONFIRM" == "y" ]; then + exit 0 + fi + read -p "Are you sure: ($1)? [y/N] " CONFIRM + if [ "$CONFIRM" == "y" ]; then + exit 0 + else + exit 1 + fi +} -- cgit v1.2.3-freya