diff --git a/dev-tools/check_project.sh b/dev-tools/check_project.sh index b3bf4864..1f09d153 100755 --- a/dev-tools/check_project.sh +++ b/dev-tools/check_project.sh @@ -2,7 +2,7 @@ # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # Copyright 2020-2021 Siemens AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. @@ -326,7 +326,7 @@ copy_right_check(){ local DIR_="${2:-}" local EXCLUDE_="${3:-}" echo -e "\\n""${ORANGE}""${BOLD}""EMBArk Copyright check""${NC}""\\n""${BOLD}""=================================================================""${NC}" - mapfile -t COPYRIGHT_LINE_ < <(find "${DIR_}" -type d -path "${EXCLUDE_}" -prune -false -o -type f -path "${0}" -prune -false -o -iname "*.sh" -exec grep -H "Copyright" {} \;) + mapfile -t COPYRIGHT_LINE_ < <(find "${DIR_}" -type d -path "${PWD}/emba" -prune -false -o -type d -path "${EXCLUDE_}" -prune -false -o -type f -path "${0}" -prune -false -o -iname "*.sh" -exec grep -H "Copyright" {} \;) if [[ "${#COPYRIGHT_LINE_[@]}" -gt 0 ]]; then for LINE_ in "${COPYRIGHT_LINE_[@]}"; do if ! grep -q "${YEAR_}.*Siemens Energy AG" "${LINE_%%:*}" && ! grep -q "Siemens AG" "${LINE_%%:*}"; then @@ -359,7 +359,7 @@ list_linter_exceptions "bandit" "$PWD" "${PWD}/.venv" pylinter check_django yamlchecker -copy_right_check 2023 "${PWD}" "${PWD}/emba_logs" +copy_right_check 2024 "${PWD}" "${PWD}/emba_logs" if [[ "${#MODULES_TO_CHECK_ARR[@]}" -gt 0 ]]; then echo -e "\\n\\n""${GREEN}${BOLD}""SUMMARY:${NC}\\n" diff --git a/dev-tools/clean-setup.sh b/dev-tools/clean-setup.sh index 96254979..8a12126e 100755 --- a/dev-tools/clean-setup.sh +++ b/dev-tools/clean-setup.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/dev-tools/debug-server-start.sh b/dev-tools/debug-server-start.sh index a047da6e..cb3ebd76 100755 --- a/dev-tools/debug-server-start.sh +++ b/dev-tools/debug-server-start.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/dev-tools/prepare.sh b/dev-tools/prepare.sh index f094e514..42d52a9c 100755 --- a/dev-tools/prepare.sh +++ b/dev-tools/prepare.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/dev-tools/test.sh b/dev-tools/test.sh index e9c326ba..660383d8 100755 --- a/dev-tools/test.sh +++ b/dev-tools/test.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/export-DB.sh b/export-DB.sh index 248bbcf4..b02147d4 100755 --- a/export-DB.sh +++ b/export-DB.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/helper/helper_embark_general.sh b/helper/helper_embark_general.sh index aa40c218..2e035cd0 100644 --- a/helper/helper_embark_general.sh +++ b/helper/helper_embark_general.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/helper/wickStrictModeFail.sh b/helper/wickStrictModeFail.sh index f2401416..e9ffe9c1 100644 --- a/helper/wickStrictModeFail.sh +++ b/helper/wickStrictModeFail.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/import-DB.sh b/import-DB.sh index b61bfac1..528c1cf1 100755 --- a/import-DB.sh +++ b/import-DB.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/installer.sh b/installer.sh index 7c7f71e7..02b518ad 100755 --- a/installer.sh +++ b/installer.sh @@ -2,7 +2,7 @@ # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # Copyright 2020-2022 Siemens AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. diff --git a/run-server.sh b/run-server.sh index 4f4e7aae..60633e51 100755 --- a/run-server.sh +++ b/run-server.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # Copyright 2020-2022 Siemens AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. diff --git a/supervisor.sh b/supervisor.sh index 2ec4435a..e40abed6 100755 --- a/supervisor.sh +++ b/supervisor.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020 - 2023 Siemens Energy AG +# Copyright 2020 - 2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. #