Skip to content

Commit

Permalink
Fix title length check (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasWP authored Jan 13, 2023
1 parent 46710f8 commit b243aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async function init() {
const dmgFilename = `${appName} ${appInfo.CFBundleShortVersionString}.dmg`;
const dmgPath = path.join(destinationPath, dmgFilename);

if (dmgTitle > 27) {
if (dmgTitle.length > 27) {
ora.fail('The disk image title cannot exceed 27 characters. This is a limitation in a dependency: https://github.com/LinusU/node-alias/issues/7');
process.exit(1);
}
Expand Down

0 comments on commit b243aff

Please sign in to comment.