Permalink
Browse files

Correctly self-update with Unix new lines (from git repository)

  • Loading branch information...
Infocatcher committed Apr 7, 2013
1 parent f07d2d3 commit 05510e30625f21810a119115b6c024583a397d96
Showing with 2 additions and 1 deletion.
  1. +2 −1 jsBeautifier.js
View
@@ -4120,7 +4120,8 @@ function selfUpdate() {
onComplete();
function onComplete() {
var selfCode = AkelPad.ReadFile(WScript.ScriptFullName, 0, 65001, 1);
var selfCode = AkelPad.ReadFile(WScript.ScriptFullName, 0, 65001, 1)
.replace(/\r\n?|\n\r?/g, "\r\n");
var selfCodeOld = selfCode;
for(var file in data) {
var start = "\r\n//== " + file + "\r\n";

0 comments on commit 05510e3

Please sign in to comment.