From 5118ee1ab051e48df6d1dbddf524d9c4cfeb81f0 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Fri, 23 May 2025 09:26:43 -0600 Subject: [PATCH] Update convert.sh --- usr/local/share/bastille/convert.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr/local/share/bastille/convert.sh b/usr/local/share/bastille/convert.sh index 85ff3887..8c54f901 100644 --- a/usr/local/share/bastille/convert.sh +++ b/usr/local/share/bastille/convert.sh @@ -39,6 +39,7 @@ usage() { Options: -a | --auto Auto mode. Start/stop jail(s) if required. + -y | --yes Do not prompt. Just convert. -x | --debug Enable debug mode. EOF @@ -47,6 +48,7 @@ EOF # Handle options. AUTO=0 +AUTO_YES=0 while [ "$#" -gt 0 ]; do case "${1}" in -h|--help|help) @@ -56,6 +58,10 @@ while [ "$#" -gt 0 ]; do AUTO=1 shift ;; + -y|--yes) + AUTO_YES=1 + shift + ;; -x|--debug) enable_debug shift @@ -64,6 +70,7 @@ while [ "$#" -gt 0 ]; do for _opt in $(echo ${1} | sed 's/-//g' | fold -w1); do case ${_opt} in a) AUTO=1 ;; + y) AUTO_YES=1 ;; x) enable_debug ;; *) error_exit "[ERROR]: Unknown Option: \"${1}\"" ;; esac