Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 25ee738

Browse files
janazTomasz Janowski
authored andcommitted
Cleanup staging dir properly
1 parent 69f7941 commit 25ee738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auto/package-cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ tar -xJ -f "${tmp_dir}/${node_archive}" --strip 1 -C "${node_dir}"
2626

2727
#prepare staging dir
2828
mkdir -p "${stage_dir}"
29-
rm -rf "${stage_dir}/*"
29+
rm -rf "${stage_dir}"/*
3030
cp -a package.json yarn.lock src/* "${node_dir}"/bin/node "${stage_dir}/"
3131

3232
#install deps and create archive
3333
cd "${stage_dir}"
3434
yarn install --frozen-lockfile --production --no-bin-links --ignore-optional
35-
rm -f yarn.lock
35+
rm -f yarn.lock package.json
3636
7za a -mx9 -r layer.zip .

0 commit comments

Comments
 (0)