dotfiles-guix/installer/guix-log
2024-06-21 22:52:21 -04:00

23 lines
376 B
Bash
Executable file

#!/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
}