Fix `trap` in a few shell scripts

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 3d53b9ef1a4cda7b6303a0496f8531eceeef0e77
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2022-09-20T16:50:16Z
Releases: 16.0
Fix `trap` in a few shell scripts

The original `trap` lines in these scripts are incomplete: in case of
any signal, they delete the working directory but let the script run to
completion, which is useless because it will only proceed to complain
about the working directory being removed.  Add `exit` there, with the
original exit value (not rm's).

Since this is mostly just cosmetic, no backpatch.

Discussion: https://postgr.es/m/20220913181002.hzsosy7qkemb7ky7@alvherre.pgsql

Files

PathChange+/−
src/tools/find_static modified +1 −1
src/tools/make_ctags modified +1 −1
src/tools/pginclude/cpluspluscheck modified +1 −1
src/tools/pginclude/headerscheck modified +3 −3
src/tools/pgtest modified +1 −1

Discussion