CuteNews CVE additions

This commit is contained in:
Pin
2023-02-08 21:33:33 -05:00
parent e901e374a8
commit d1de2d1450
11 changed files with 184 additions and 8 deletions

12
kybus
View File

@@ -78,6 +78,12 @@ function findCVE {
}
function ArgParse {
# Exit if no args are passed
if (( $# == 0 )); then
helpKybus
exit 1
fi
while (("${#}")); do
case "${1}" in
--cve | -c)
@@ -101,12 +107,14 @@ function ArgParse {
exit 0
;;
--destroy)
terraform destroy -auto-approve
exit 0
terraform destroy -auto-approve || echo "Destory is currently run locally and an error occured"
shift
exit 0
;;
*)
shift
helpKybus
exit 0
;;
esac
done