CuteNews CVE additions
This commit is contained in:
12
kybus
12
kybus
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user