Skip to content

Commit e89fe3a

Browse files
committed
Create .lproj subdirectory if it does not exist yet
1 parent 832343b commit e89fe3a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_download_strings_files_from_glotpress.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ def self.run(params)
77

88
locales.each do |glotpress_locale, lproj_name|
99
# Download the export in the proper `.lproj` directory
10-
destination = File.join(params[:download_dir], "#{lproj_name}.lproj", "#{params[:table_basename]}.strings")
10+
lproj_dir = File.join(params[:download_dir], "#{lproj_name}.lproj")
11+
destination = File.join(lproj_dir, "#{params[:table_basename]}.strings")
12+
FileUtils.mkdir(lproj_dir) unless Dir.exist?(lproj_dir)
13+
1114
Fastlane::Helper::Ios::L10nHelper.download_glotpress_export_file(
1215
project_url: params[:project_url],
1316
locale: glotpress_locale,

0 commit comments

Comments
 (0)