mirror of
https://github.com/mr0xb/scripts.git
synced 2026-08-27 19:34:57 -04:00
initial commit
This commit is contained in:
parent
2f723ac7ee
commit
62156a1d85
9 changed files with 68 additions and 0 deletions
10
util/confirm
Executable file
10
util/confirm
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
confirm () {
|
||||
declare yn
|
||||
read -p " [y/N] " yn
|
||||
[[ ${yn,,} =~ y(es)? ]] && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
confirm
|
||||
Loading…
Reference in a new issue