Skip to content

Commit

Permalink
only set executable permissions on non-windows filesystems, as `fs
Browse files Browse the repository at this point in the history
.changePermissions()` throws on windows
  • Loading branch information
grob committed Jan 16, 2018
1 parent 661987d commit c31e9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/admin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ function installPackage(url, options) {
var ringoBin = fs.join(engine.getRingoHome().getPath(), "bin");
for each (var bin in fs.list(bindir)) {
var binfile = fs.join(bindir, bin);
fs.changePermissions(binfile, 0755);
if (/^windows/i.test(java.lang.System.getProperty("os.name"))) {
fs.copy(binfile, fs.join(ringoBin, bin));
} else {
fs.changePermissions(binfile, 0755);
fs.symbolicLink(binfile, fs.join(ringoBin, bin));
}
}
Expand Down

0 comments on commit c31e9b4

Please sign in to comment.