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) {
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 ) ;
Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments