In /usr/bin/dpatch-convert-diffgz line 36:
if [ -z "$DPCD_PATCHNAME" ] || [ "$DPCD_PATCHNAME" = ".dpatch"; then
^-- SC1009: The mentioned syntax error was in this if expression.
                               ^-- SC1073: Couldn't parse this test expression. Fix to allow more checks.
                                                              ^-- SC1072: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.

For more information:
  https://www.shellcheck.net/wiki/SC1072 -- Expected test to end here (don't ...
  https://www.shellcheck.net/wiki/SC1073 -- Couldn't parse this test expressi...
  https://www.shellcheck.net/wiki/SC1009 -- The mentioned syntax error was in...