get_kconfigs.sh: Simplify the code
authorAlexander Popov <alex.popov@linux.com>
Sat, 23 Nov 2024 17:28:13 +0000 (20:28 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sat, 23 Nov 2024 18:22:02 +0000 (21:22 +0300)
kernel_hardening_checker/config_files/distros/get_kconfigs.sh

index 3897a09f506a496b5583ddaed04448035bfca38e..0f3cb5b2651fa562a59195d661f04f44dbecb0a1 100755 (executable)
@@ -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