Skip to content

Commit 11d5799

Browse files
author
bastieneichenberger
committed
typo with lowerCase
1 parent cd62606 commit 11d5799

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/helper/shell/shell.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ H.Shell = (function (my) {
1717
my.execute = function (shell_function) {
1818
var result, apple_script;
1919

20-
if ($.os.contains('Windows')) {
20+
if ($.os.toLowerCase().contains('windows')) {
2121
throw {
2222
name: 'UnimplementedMethodError',
2323
message: 'this function do not work on Windows',
@@ -26,7 +26,7 @@ H.Shell = (function (my) {
2626
};
2727
}
2828

29-
if (app.name.indexOf('InDesign') > -1) {
29+
if (app.name.toLowerCase().contains('indesign')) {
3030
apple_script = 'do shell script "' + shell_function + '"';
3131
try {
3232
result = app.doScript(apple_script, ScriptLanguage.applescriptLanguage);

tests/test/fixtures/helper/shell/test_shell.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
H.Config.init();
66

77
// shell string to build a ZIP zip -r output.zip source
8-
var shell_string = 'zip -r %s %s';
8+
var shell_string = 'zip -r -j --junk-paths %s %s';
99
shell_string = shell_string.printf(results_folder + '/output.zip', results_folder);
1010

1111
H.Shell.execute(shell_string);

0 commit comments

Comments
 (0)