From 4ee3b07ab248a5c4bc48989b1df20de277d16294 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sat, 23 Nov 2024 20:28:13 +0300 Subject: [PATCH] get_kconfigs.sh: Simplify the code --- kernel_hardening_checker/config_files/distros/get_kconfigs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.31.1