Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Jan 3, 2024
1 parent 0b1fb6b commit b4045f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/actions/devcontainer-json/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ echo "tag=${tag}" >&3;

node -e "$(cat <<EOF
const fs = require('fs');
const path = require('path');
const json = JSON.parse(require('fs').readFileSync('image/.devcontainer/devcontainer.json'));
const {cpSync, readFileSync} = require('fs');
const json = JSON.parse(readFileSync('image/.devcontainer/devcontainer.json'));
json.build.args.BASE = '${os}';
json.containerEnv = ${container_env} || undefined;
Expand All @@ -40,7 +39,7 @@ ${features}.forEach(({name, ...feature}) => {
} else {
name = './features/src/' + name;
if (name in dups) {
fs.cpSync(
cpSync(
name,
name = name + "." + (++dups[name]),
{recursive: true}
Expand Down

0 comments on commit b4045f5

Please sign in to comment.