Skip to content

Commit

Permalink
fix(driverkit/utils): quietly remove driver versions
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed Sep 2, 2020
1 parent ad3fd19 commit 0b01fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions driverkit/utils/cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ filterout_versions() {
printf "%s\t%s\n" "$i" "${all[$i]}"
if [[ ! " ${keep[*]}" =~ ${all[$i]} ]]; then
printf " \tremoving..."
yes N | JFROG_CLI_LOG_LEVEL=DEBUG jfrog bt vd --user "${user}" --key "${pass}" "falcosecurity/driver/kernel-module/${all[$i]}" # --quiet (remove yes)
yes N | JFROG_CLI_LOG_LEVEL=DEBUG jfrog bt vd --user "${user}" --key "${pass}" "falcosecurity/driver/ebpf-probe/${all[$i]}" # --quiet (remove yes)
JFROG_CLI_LOG_LEVEL=DEBUG jfrog bt vd --user "${user}" --key "${pass}" "falcosecurity/driver/kernel-module/${all[$i]}" --quiet
JFROG_CLI_LOG_LEVEL=DEBUG jfrog bt vd --user "${user}" --key "${pass}" "falcosecurity/driver/ebpf-probe/${all[$i]}" -quiet
unset -v 'all[$i]'
fi
done
}

usage() {
echo "usage: $0 -p 123 -v \"abcd efgh\""
echo "usage: $0 -p 123 -v abcd -v efgh"
}

while getopts ":p::v:" opt; do
Expand Down

0 comments on commit 0b01fb4

Please sign in to comment.