1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

tree: import changes from testing-devel at 6eba93a8eb

This commit is contained in:
CoreOS Bot
2026-01-13 13:30:52 +00:00
parent 3ce72b6ea9
commit 9fbbfcba33

View File

@@ -9,17 +9,13 @@ set -xeuo pipefail
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"
# List of known files and directories with group write permission
# List of known files and directories with group write permission (FCOS & EL)
list_known=()
# List of known files and directories with group write permission (EL only)
list_known_el=()
# List of known files and directories with group write permission (RHCOS only)
list_known_rhcos=(
'/usr/share/licenses/publicsuffix-list-dafsa/COPYING'
)
is_fcos="false"
if [[ "$(source /etc/os-release && echo "${ID}")" == "fedora" ]]; then
is_fcos="true"
if ! is_fcos; then
list_known+=("${list_known_el[@]}")
fi
unknown=""
@@ -31,14 +27,6 @@ while IFS= read -r -d '' e; do
break
fi
done
if [[ "${is_fcos}" == "false" ]]; then
for k in "${list_known_rhcos[@]}"; do
if [[ "${k}" == "${e}" ]]; then
found="true"
break
fi
done
fi
if [[ "${found}" == "false" ]]; then
unknown+=" ${e}"
fi