bin/confirm @ 579af8ed8dcb

More
author Steve Losh <steve@stevelosh.com>
date Sat, 15 Dec 2018 16:57:13 -0500
parents bfd9b1f910a3
children 32bdaee0bb8b
#!/usr/bin/env bash

read -p "Are you sure? " -r
if [[ $REPLY =~ ^[Yy](es)?$ ]]
then
    exit 0
else
    exit 1
fi