Last active
March 23, 2022 21:02
-
-
Save PiDroid-B/8bea04741e96bea249d7835acf0ed65d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR="/root/docker-bench-security/output" | |
# id of test to exclude (sep = comma) | |
TEST_TO_EXCLUDE="1.1.1" | |
[[ -n "$TEST_TO_EXCLUDE" ]] && TEST_TO_EXCLUDE="-e ${TEST_TO_EXCLUDE}" | |
[ -e "${DIR}/last" ] && mv "${DIR}/last" "${DIR}/last_1" | |
sh docker-bench-security.sh ${TEST_TO_EXCLUDE} > "${DIR}/last" | |
cp "${DIR}/last" "${DIR}/$(date '+%y%m%d_%H%M%S')" | |
echo | |
[ -e "${DIR}/last" ] && [ -e "${DIR}/last_1" ] && diff -y --suppress-common-lines "${DIR}/last" "${DIR}/last_1" | |
echo | |
echo "cat ${DIR}/last | most" | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment