diff options
| author | Tyler Murphy <tylerm@tylerm.dev> | 2023-10-07 16:59:12 -0400 |
|---|---|---|
| committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-10-07 16:59:12 -0400 |
| commit | 0be7c27439b75a16cd340b4a72855a7cc6cec06a (patch) | |
| tree | 3ec923632137c223911a21ed169a1247d9051406 /guix-strap/guix-log | |
| parent | format btrfs, no YES on cryptsetup format needed (diff) | |
| download | dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.tar.gz dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.tar.bz2 dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.zip | |
guix strap done (hopefully)
Diffstat (limited to 'guix-strap/guix-log')
| -rwxr-xr-x | guix-strap/guix-log | 13 |
1 files changed, 13 insertions, 0 deletions
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 +} |