dotfiles-guix/installer/guix-log

24 lines
376 B
Text
Raw Normal View History

2023-10-07 19:42:29 +00:00
#!/run/current-system/profile/bin/bash
2023-10-07 19:38:22 +00:00
ERROR() {
>&2 printf "\x1b[91mError: \x1b[0m\x1b[98m$1\n"
}
EVENT() {
printf "\x1b[95m>>> \x1b[0m\x1b[98m$1\n"
}
2023-10-07 20:59:12 +00:00
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
}