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