@@ -1155,17 +1155,17 @@ def get_bat_command(self, export_dict, export_dir, export_dirs, contents):
11551155 num_dirs = len (export_dirs ),
11561156 export_dirs = ex_dir_vars ,
11571157 ** export_dict )
1158- bashcontents = '{}\n {}' .format (env_vars , contents )
1158+ batcontents = '{}\n {}' .format (env_vars , contents )
11591159
1160- bash_file = utils .path_join (config .TEMP_DIR ,
1161- '{}.bash ' .format (self .project_name ()))
1160+ bat_file = utils .path_join (config .TEMP_DIR ,
1161+ '{}.bat ' .format (self .project_name ()))
11621162
1163- self .logger .debug (bashcontents )
1163+ self .logger .debug (batcontents )
11641164
1165- with open (bash_file , 'w+' ) as f :
1166- f .write (bashcontents )
1165+ with open (bat_file , 'w+' ) as f :
1166+ f .write (batcontents )
11671167
1168- command = [bash_file ]
1168+ command = [bat_file ]
11691169
11701170 return command
11711171
@@ -1192,17 +1192,17 @@ def get_bash_command(self, export_dict, export_dir, export_dirs, contents):
11921192 num_dirs = len (export_dirs ),
11931193 export_dirs = ex_dir_vars ,
11941194 ** export_dict )
1195- batcontents = '{}\n {}' .format (env_vars , contents )
1195+ bashcontents = '{}\n {}' .format (env_vars , contents )
11961196
1197- bat_file = utils .path_join (config .TEMP_DIR ,
1198- '{}.bat ' .format (self .project_name ()))
1197+ bash_file = utils .path_join (config .TEMP_DIR ,
1198+ '{}.bash ' .format (self .project_name ()))
11991199
1200- self .logger .debug (batcontents )
1200+ self .logger .debug (bashcontents )
12011201
1202- with open (bat_file , 'w+' ) as f :
1203- f .write (batcontents )
1202+ with open (bash_file , 'w+' ) as f :
1203+ f .write (bashcontents )
12041204
1205- command = [bat_file ]
1205+ command = [bash_file ]
12061206
12071207 return command
12081208
0 commit comments