destroy: implement necessary -y option to autoconfirm

This commit is contained in:
tschettervictor
2025-08-09 20:30:10 -06:00
committed by GitHub
parent b9d8e6930b
commit b751cfce07

View File

@@ -390,9 +390,9 @@ if($_POST):
break;
else:
if (isset($_POST['nowstop'])):
$cmd = ("/usr/local/bin/bastille destroy -f {$item}");
$cmd = ("/usr/local/bin/bastille destroy -afy {$item}");
else:
$cmd = ("/usr/local/bin/bastille destroy {$item}");
$cmd = ("/usr/local/bin/bastille destroy -fy {$item}");
endif;
unset($output,$retval);mwexec2($cmd,$output,$retval);
if($retval == 0):