Created
June 20, 2018 07:09
-
-
Save tevino/ecc36b3c2150ef5962efb571cc5be562 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indent() { sed 's/^/ /'; } | |
confirm() { | |
msg=$1 || "Are you sure?" | |
msg="$msg (y/N)" | |
read -p "$msg" -n 1 -r | |
echo | |
[[ $REPLY =~ ^[Yy]$ ]] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment