From: Alexander Popov Date: Sat, 23 Nov 2024 17:26:49 +0000 (+0300) Subject: get_kconfigs.sh: Rename distro variable X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=bc369d5c8d6ced6daeee4edf208ce88750201e6f;p=kconfig-hardened-check.git get_kconfigs.sh: Rename distro variable --- diff --git a/kernel_hardening_checker/config_files/distros/get_kconfigs.sh b/kernel_hardening_checker/config_files/distros/get_kconfigs.sh index 49d6853..3897a09 100755 --- a/kernel_hardening_checker/config_files/distros/get_kconfigs.sh +++ b/kernel_hardening_checker/config_files/distros/get_kconfigs.sh @@ -2,7 +2,7 @@ oracle_git_url="https://raw.githubusercontent.com/oracle/kconfigs/refs/heads/gh-pages/out/" -distros_from_oracle=( +kconfigs_from_oracle=( "Android 12 (5.10) aarch64" "Android 15 (6.6) aarch64" "Arch x86_64" @@ -21,9 +21,9 @@ distros_from_oracle=( "Ubuntu 24.04 LTS Noble x86_64" ) -for distro in "${distros_from_oracle[@]}"; do - filename=$(echo ${distro// /_}) # Replace spaces with underscores - wget -O "${filename}.config" "${oracle_git_url}${distro}/config" # Fetch kconfig +for kconfig in "${kconfigs_from_oracle[@]}"; do + filename=$(echo ${kconfig// /_}) # Replace spaces with underscores + wget -O "${filename}.config" "${oracle_git_url}${kconfig}/config" # Fetch kconfig done # Fetch some other kconfigs