File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/test/fixtures/helper/shell Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ H.Shell = (function (my) {
17
17
my . execute = function ( shell_function ) {
18
18
var result , apple_script ;
19
19
20
- if ( $ . os . contains ( 'Windows ' ) ) {
20
+ if ( $ . os . toLowerCase ( ) . contains ( 'windows ' ) ) {
21
21
throw {
22
22
name : 'UnimplementedMethodError' ,
23
23
message : 'this function do not work on Windows' ,
@@ -26,7 +26,7 @@ H.Shell = (function (my) {
26
26
} ;
27
27
}
28
28
29
- if ( app . name . indexOf ( 'InDesign' ) > - 1 ) {
29
+ if ( app . name . toLowerCase ( ) . contains ( 'indesign' ) ) {
30
30
apple_script = 'do shell script "' + shell_function + '"' ;
31
31
try {
32
32
result = app . doScript ( apple_script , ScriptLanguage . applescriptLanguage ) ;
Original file line number Diff line number Diff line change 5
5
H . Config . init ( ) ;
6
6
7
7
// 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' ;
9
9
shell_string = shell_string . printf ( results_folder + '/output.zip' , results_folder ) ;
10
10
11
11
H . Shell . execute ( shell_string ) ;
You can’t perform that action at this time.
0 commit comments