From cf5d8d92f1904511006a89970349dbf723ae1732 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 21 Jun 2024 22:52:21 -0400 Subject: update things --- installer/guix-log | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 installer/guix-log (limited to 'installer/guix-log') diff --git a/installer/guix-log b/installer/guix-log new file mode 100755 index 0000000..0d26853 --- /dev/null +++ b/installer/guix-log @@ -0,0 +1,23 @@ +#!/run/current-system/profile/bin/bash + +ERROR() { + >&2 printf "\x1b[91mError: \x1b[0m\x1b[98m$1\n" +} + +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