Skip to content

Commit f0382c3

Browse files
pgnickbmmlb
andauthored
Update ansible/files/coredump/process-orioledb-coredumps.sh
Co-authored-by: Manuel Mendez <708570+mmlb@users.noreply.github.com>
1 parent 6e62318 commit f0382c3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎ansible/files/coredump/process-orioledb-coredumps.sh‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,7 @@ process_one() {
176176
local tmpdir
177177
tmpdir=$(mktemp -d /tmp/coredump-XXXXXX)
178178
chmod 700 "$tmpdir"
179-
# suppress shellcheck warning about quoting $tmpdir in the trap command -
180-
# it's correct to quote it, and the trap is evaluated at runtime,
181-
# not parse time.
182-
# shellcheck disable=SC2064
183-
trap "rm -rf '$tmpdir'" RETURN
179+
trap 'rm -rf "$tmpdir"' RETURN
184180

185181
if ! timeout "$EXTRACTION_TIMEOUT" coredumpctl dump "$pid" --output "${tmpdir}/core" >/dev/null 2>&1; then
186182
log "pid ${pid}: export failed or timed out"

0 commit comments

Comments
 (0)