Adding confirmUser function

This commit is contained in:
2026-01-14 13:51:39 -06:00
parent 3d0d9b241a
commit 265d1b6b82

View File

@@ -214,6 +214,15 @@ done
return 0;
}
# Confirm a user wants to do the thing.
function confirmUser() {
infoheader WARNING: "$1"
read -p 'Are you sure? [yes/NO]' answer
if [ "${answer,,}" != 'yes' ]; then
exit 1
fi
}
## Torrenting functions ##
# Configure the torrenting engine.
function configuretorrent {