- if [[ "$l" == *"Maintainer Notes:"* ]]; then
- break
- fi
- if [[ "$l" == "-Build:"* ]]; then
- onlybuild=false
- elif [[ "$l" == "+Build:"* ]]; then
- if $newbuild; then
- onlybuild=false
- fi
- newbuild=true
- build=${l#*:}
- version=${build%%,*}
- build=${build#*,}
- vercode=${build%%,*}
- elif $newbuild && $onlybuild && [[ "$l" == "+"*"disable="* ]]; then
- disable=true
- fi
- done < <(git diff HEAD -- "$file")
+ case "$l" in
+ *"Maintainer Notes:"*) break ;;
+ "-Build:"*) onlybuild=false ;;
+ "+Build:"*)
+ $newbuild && onlybuild=false
+ newbuild=true
+ build=${l#*:}
+ version=${build%%,*}
+ build=${build#*,}
+ vercode=${build%%,*}
+ ;;
+ '+'*"disable="*)
+ $newbuild && $onlybuild && disable=true
+ ;;
+ esac
+ done << EOF
+ $(git diff HEAD -- "$file")
+EOF