In /usr/bin/debrepro line 29:
    local failed=''
    ^----------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/debrepro line 30:
    for mandatory in faketime; do
                     ^------^ SC2043: This loop will only ever run once. Bad quoting or missing glob/expansion?


In /usr/bin/debrepro line 70:
    local var="$1"
    ^-------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/debrepro line 79:
    local first="$2"
    ^---------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/debrepro line 80:
    local second="$3"
    ^----------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/debrepro line 100:
        'export PATH="$PATH":/i/capture/the/path'
        ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.


In /usr/bin/debrepro line 140:
    echo '${build_prefix:-} dpkg-buildpackage -b -us -uc'
         ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.


In /usr/bin/debrepro line 242:
trap "if [ \$? -eq 0 ]; then rm -rf $tmpdir; else echo; echo 'I: artifacts left in $tmpdir'; fi" INT TERM EXIT
                                    ^-----^ SC2064: Use single quotes, otherwise this expands now rather than when signalled.
                                                                                   ^-----^ SC2064: Use single quotes, otherwise this expands now rather than when signalled.

For more information:
  https://www.shellcheck.net/wiki/SC2039 -- In POSIX sh, 'local' is undefined.
  https://www.shellcheck.net/wiki/SC2043 -- This loop will only ever run once...
  https://www.shellcheck.net/wiki/SC2064 -- Use single quotes, otherwise this...