functions
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ function fetch_distro_like {
|
|||||||
|
|
||||||
function _confirm_destructive {
|
function _confirm_destructive {
|
||||||
local message="${1:-This cannot be undone!}"
|
local message="${1:-This cannot be undone!}"
|
||||||
echo "⚠️ WARNING: $message"
|
echo "⚠️ WARNING: $message"
|
||||||
read -rp "Type YES to confirm: " response
|
read -rp "Type YES to confirm: " response
|
||||||
case "$response" in
|
case "$response" in
|
||||||
[yY][eE][sS] | [yY]) return 0 ;;
|
[yY][eE][sS] | [yY]) return 0 ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user