Skip to content

Commit

Permalink
Fix: Unlink bundle_config_file
Browse files Browse the repository at this point in the history
  • Loading branch information
edelciomolina committed Dec 5, 2023
1 parent a57994c commit 9610198
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ runs:
steps:
- name: NPM Install Dependencies
shell: bash
working-directory: bundler-minifier-action
run: npm install

- name: Run Bundler Minifier Action
working-directory: bundler-minifier-action
shell: bash
run: node index.js;
2 changes: 1 addition & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var Generate = (() => {
}

function start() {
fs.unlinkSync(bundle_config_file)
if (fs.existsSync(bundle_config_file)) fs.unlinkSync(bundle_config_file)
appendObjectToFile('[\n')
processDirectory(bundle_config_folder)
appendObjectToFile(']\n')
Expand Down

0 comments on commit 9610198

Please sign in to comment.