Skip to content

Commit

Permalink
fix: trap usage
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jul 22, 2024
1 parent eec6812 commit dcea288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/testpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ TEST_DIR=$(mktemp -d)

mkdir -p ${TEST_DIR}

trap 'popd && rm -rf $TEST_DIR' EXIT

# Create package tarball
npm pack --pack-destination=${TEST_DIR}

Expand All @@ -29,5 +31,3 @@ node esmodules.mjs
# not supported in earlier versions. Therefore we restrict the ESM test to more recent versions of
# Node.js:
( node --version | grep -vq 'v16' ) || ( node --experimental-json-modules esmodules-package.mjs )

trap 'popd && rm -rf $TEST_DIR' EXIT

0 comments on commit dcea288

Please sign in to comment.