From dfff062bc683151a867eeaec967796dd76a2436b Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 19 Oct 2023 18:04:27 +0200 Subject: [PATCH] Avoid corruption in 60-openrgb.rules Due to the missing line-break before DUMMY_LIST it would replace whatever was the first entry in there. * Resolves #3675 This patch was done while working on reproducible builds for openSUSE. --- scripts/build-udev-rules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-udev-rules.sh b/scripts/build-udev-rules.sh index f87f5664..71129c4b 100755 --- a/scripts/build-udev-rules.sh +++ b/scripts/build-udev-rules.sh @@ -85,7 +85,7 @@ do while read -r detector do #Filter the list for all devices that use this detector - text=$(printf '%s\n%s' "$HID_LIST" "$HID_WRAPPER_LIST" "$DUMMY_LIST" | grep ${detector} | cut -d: -f 2- | sed -e 's/"//g') + text=$(printf '%s\n%s\n%s' "$HID_LIST" "$HID_WRAPPER_LIST" "$DUMMY_LIST" | grep ${detector} | cut -d: -f 2- | sed -e 's/"//g') #Replace the detector string with the list of devices detectors=${detectors/${detector}/${text}}