mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 21:46:52 +08:00
introduce DFS_QUIET
This commit is contained in:
parent
a2b9db786b
commit
aa448efb6d
|
@ -103,13 +103,14 @@ setup_color() {
|
|||
|
||||
ask_for_yN()
|
||||
{
|
||||
while true; do
|
||||
while [[ -z "$DFS_QUIET" ]]; do
|
||||
read -p "${FMT_YELLOW}$1${FMT_RESET} [yN]: " yn
|
||||
case $yn in
|
||||
[Yy]* ) return 1;;
|
||||
* ) return 0;;
|
||||
esac
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
post_log()
|
||||
|
|
Loading…
Reference in New Issue
Block a user