From: Alexander Popov Date: Sat, 23 Nov 2024 17:28:13 +0000 (+0300) Subject: get_kconfigs.sh: Simplify the code X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4ee3b07ab248a5c4bc48989b1df20de277d16294;p=kconfig-hardened-check.git get_kconfigs.sh: Simplify the code --- diff --git a/kernel_hardening_checker/config_files/distros/get_kconfigs.sh b/kernel_hardening_checker/config_files/distros/get_kconfigs.sh index 3897a09..0f3cb5b 100755 --- a/kernel_hardening_checker/config_files/distros/get_kconfigs.sh +++ b/kernel_hardening_checker/config_files/distros/get_kconfigs.sh @@ -22,8 +22,8 @@ kconfigs_from_oracle=( ) 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 + filename="${kconfig// /_}.config" # Replace spaces with underscores + wget -O "${filename}" "${oracle_git_url}${kconfig}/config" # Fetch kconfig done # Fetch some other kconfigs