Commit 7c79992e authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Tomasz Zawadzki
Browse files

SC2295: Expansions inside ${..} need to be quoted separately

parent 6e7b3e4c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ _print_enums() {
	output=$(< "$rootdir/$(git -C "$rootdir" grep -G -l "$enum_string" -- lib module)")

	# Isolate the enum block
	output=${output#*$enum_string$'\n'} output=${output%%$'\n'\};*}
	output=${output#*"$enum_string"$'\n'} output=${output%%$'\n'\};*}
	# Fold it onto an array
	IFS="," read -ra output <<< "${output//[[:space:]]/}"
	# Drop the assignments