]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
tools: linux-firmware: Tolerate any quotes in diff output
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Nov 2025 12:56:25 +0000 (12:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Nov 2025 12:56:25 +0000 (12:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/find-linux-firmware-changes

index bcf9cabef9a5cfd9177327624cab5c7111ef23fb..3141e7fe05bd68fc0ed8b59aad86f88c76950cae 100755 (executable)
@@ -44,10 +44,10 @@ compare() {
                if [[ ${line} =~ ^Files\ OLD/(.*)\ and ]]; then
                        changed_files+=( "${BASH_REMATCH[1]}" )
 
-               elif [[ ${line} =~ ^Only\ in\ NEW/(.*):\ (.*)$ ]]; then
+               elif [[ ${line} =~ ^Only\ in\ NEW/(.*):\ \'?([^\']*)\'?$ ]]; then
                        changed_files+=( "${BASH_REMATCH[1]}/${BASH_REMATCH[2]}" )
 
-               elif [[ ${line} =~ ^Only\ in\ OLD/(.*):\ (.*)$ ]]; then
+               elif [[ ${line} =~ ^Only\ in\ OLD/(.*):\ \'?([^\']*)\'?$ ]]; then
                        removed_files+=( "${BASH_REMATCH[1]}/${BASH_REMATCH[2]}" )
 
                # Handle unknown lines