summaryrefslogtreecommitdiff
path: root/SOURCES/generate_all_configs.sh
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-09-25 13:02:54 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-09-25 13:02:54 +0200
commit886c75718617c8a478395484187d06a6801fc334 (patch)
tree247ecdef895306475c8c66ea6c744cfd78304a6c /SOURCES/generate_all_configs.sh
parent117fa637e6752d4c35c244e3e67828717e0b8a66 (diff)
downloadkernel-fsync-886c75718617c8a478395484187d06a6801fc334.tar.gz
kernel-fsync-886c75718617c8a478395484187d06a6801fc334.zip
kernel 6.5.4
Diffstat (limited to 'SOURCES/generate_all_configs.sh')
-rwxr-xr-xSOURCES/generate_all_configs.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/SOURCES/generate_all_configs.sh b/SOURCES/generate_all_configs.sh
index 7a75830..02c1f6a 100755
--- a/SOURCES/generate_all_configs.sh
+++ b/SOURCES/generate_all_configs.sh
@@ -21,15 +21,16 @@ fi
# The +1 is to remove the - at the end of the SPECPACKAGE_NAME string
specpackage_name_len=$((${#SPECPACKAGE_NAME} + 1))
-for i in ${SPECPACKAGE_NAME}*-"$FLAVOR".config; do
- NEW=${SPECPACKAGE_NAME}-"$SPECRPMVERSION"-$(echo ${i:$specpackage_name_len} | sed s/-"$FLAVOR"//)
+for i in "${SPECPACKAGE_NAME}"*-"$FLAVOR".config; do
+ # shellcheck disable=SC3057
+ NEW=${SPECPACKAGE_NAME}-"$SPECRPMVERSION"-$(echo "${i:$specpackage_name_len}" | sed s/-"$FLAVOR"//)
mv "$i" "$NEW"
done
rm -f kernel-*-"$SECONDARY".config
if [ "$DEBUGBUILDSENABLED" -eq 0 ]; then
- for i in ${SPECPACKAGE_NAME}-*debug*.config; do
+ for i in "${SPECPACKAGE_NAME}"-*debug*.config; do
base=$(echo "$i" | sed -r s/-?debug//g)
NEW=${SPECPACKAGE_NAME}-$(echo "$base" | cut -d - -f2-)
mv "$i" "$NEW"