|
@@ -663,10 +663,10 @@ fromSource() {
|
|
# Generic helpers
|
|
# Generic helpers
|
|
debug() { (( DEBUG )) && echo "Debug: $*"; }
|
|
debug() { (( DEBUG )) && echo "Debug: $*"; }
|
|
askOk() {
|
|
askOk() {
|
|
- local _response
|
|
|
|
- read -r -p "$* [y/N]" _response
|
|
|
|
- _response=${_response,,}
|
|
|
|
- [[ "$_response" =~ ^(yes|y)$ ]]
|
|
|
|
|
|
+ local r
|
|
|
|
+ read -r -p "$* [y/N]" r
|
|
|
|
+ r=${r,,}
|
|
|
|
+ [[ "$r" =~ ^(yes|y)$ ]]
|
|
}
|
|
}
|
|
extract() {
|
|
extract() {
|
|
debug "${FUNCNAME[0]}"
|
|
debug "${FUNCNAME[0]}"
|