File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ check_nvd_db() {
133
133
local REMOTE_HASH=" ${1:- } "
134
134
local LOCAL_HASH=" "
135
135
if [[ -d " ${EXT_DIR} " /nvd-json-data-feeds ]] ; then
136
- LOCAL_HASH=" $( head -c 8 " ${EXT_DIR} " /nvd-json-data-feeds/.git/refs/heads/main) "
136
+ LOCAL_HASH=" $( head " ${EXT_DIR} " /nvd-json-data-feeds/.git/refs/heads/main) "
137
137
138
138
if [[ " ${REMOTE_HASH} " == " ${LOCAL_HASH} " ]]; then
139
139
echo -e " CVE database version - ${GREEN} ok${NC} "
@@ -147,7 +147,7 @@ check_epss_db() {
147
147
local REMOTE_HASH=" ${1:- } "
148
148
local LOCAL_HASH=" "
149
149
if [[ -d " ${EXT_DIR} " /EPSS-data ]] ; then
150
- LOCAL_HASH=" $( head -c 8 " ${EXT_DIR} " /EPSS-data/.git/refs/heads/main) "
150
+ LOCAL_HASH=" $( head " ${EXT_DIR} " /EPSS-data/.git/refs/heads/main) "
151
151
152
152
if [[ " ${REMOTE_HASH} " == " ${LOCAL_HASH} " ]]; then
153
153
echo -e " EPSS database version - ${GREEN} ok${NC} "
@@ -161,7 +161,8 @@ check_git_hash() {
161
161
local REMOTE_HASH=" ${1:- } "
162
162
local LOCAL_HASH=" "
163
163
if git rev-parse --is-inside-work-tree > /dev/null 2>&1 ; then
164
- LOCAL_HASH=" $( git describe --always) "
164
+ LOCAL_HASH=" $( head .git/refs/heads/master) "
165
+ # LOCAL_HASH="$(git describe --always)"
165
166
166
167
if [[ " ${REMOTE_HASH} " == " ${LOCAL_HASH} " ]]; then
167
168
echo -e " EMBA github version - ${GREEN} ok${NC} "
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ S06_distribution_identification()
48
48
lSEARCH_FILE=" $( safe_echo " ${CONFIG} " | cut -d\; -f2) "
49
49
# echo "lSEARCH_FILE: $lSEARCH_FILE"
50
50
# echo "FIRMWARE_PATH: $FIRMWARE_PATH"
51
- if [[ " ${lSEARCH_FILE} " == * " os_release " * ]] || [[ " ${lSEARCH_FILE} " == * " lsb-release" * ]]; then
51
+ if [[ " ${lSEARCH_FILE} " == * " os-release " * ]] || [[ " ${lSEARCH_FILE} " == * " lsb-release" * ]]; then
52
52
# lets check if we have already a valid debian entry -> if so, we can skip this test
53
53
# this usually happens if we have already found an os_release or lsb-release file
54
+ # echo "Check for debian - os_release / lsb-release"
54
55
if grep -qE " debian_linux:[0-9]+" " ${S06_CSV_LOG} " ; then
55
56
print_output " [*] Already identified Debian Linux version -> skipping further tests now" " no_log"
56
57
continue
You can’t perform that action at this time.
0 commit comments