#!/bin/bash
# Ruta almacenamiento de BBDD de Vulnerabilidades
RUTA=${HOME}/vuls/config

docker pull vuls/vuls

if [[ $(tty) =~ "not a tty" ]]
then
    t=''
else
    t="-t"
fi

docker run --rm -i $t\
    -v $RUTA:/vuls \
    vuls/vuls tui $@ \
    -log-dir=/vuls/log \
    -config=/vuls/config.toml\
    -refresh-cve \
    $@

