Skip to content

Commit

Permalink
use cat instead of head for files with more than 10 lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Oct 7, 2024
1 parent d2f75ce commit 40ec13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/release/buildRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module.exports = async ({ pluginName: fileName, repoUrl, branch = 'main' }) => {
const deleteExtraFiles = (fileName) => {
shell.rm('-rf', '.git')
debug('Deleting files defined in exclusions.txt')
const exclusionsFile = shell.head('./exclusions.txt').toString()
const exclusionsFile = shell.cat('./exclusions.txt').toString()
const folderPrefix = new RegExp('^' + fileName + '/')
exclusionsFile.split('\n').forEach(file => {
if (!file) return
Expand Down

0 comments on commit 40ec13c

Please sign in to comment.