File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,9 @@ - (void)importProjectAtPath:(NSString *)path
220220 [self executeGenStringsAtPath: [self .project.filePath stringByDeletingLastPathComponent ] withRoutine: genstringsRoutine positionalParameters: includePositionalParameters];
221221 SCReader *genstringsOutputReader = [[SCReader alloc ] initWithPath: [NSTemporaryDirectory () stringByAppendingPathComponent: kKeyStringsFile ]];
222222 NSString *comment, *key, *translation;
223- while ([genstringsOutputReader getNextComment: &comment key: &key translation: &translation])
223+ while ([genstringsOutputReader getNextComment: &comment key: &key translation: &translation]) {
224224 [self .translationsDictionary setObject: [NSMutableDictionary dictionaryWithObject: comment forKey: kKeyComment ] forKey: key];
225+ }
225226
226227 [self setFilteredTranslationsDictionary: [self .translationsDictionary mutableCopy ]];
227228
@@ -238,7 +239,7 @@ -(void)executeGenStringsAtPath:(NSString*)path withRoutine:(NSString*)routine po
238239
239240 NSString *tempFilePath = NSTemporaryDirectory ();
240241
241- NSString *argument = [NSString stringWithFormat: @" find . -name ' *.m' | xargs genstrings -o %@ " , tempFilePath];
242+ NSString *argument = [NSString stringWithFormat: @" find ./ -name *.m -print0 | xargs -0 genstrings -o %@ " , tempFilePath];
242243 if ([routine length ]) argument = [argument stringByAppendingString: [NSString stringWithFormat: @" -s %@ " , routine]];
243244 if (!positionalParameters) argument = [argument stringByAppendingString: @" -noPositionalParameters" ];
244245
You can’t perform that action at this time.
0 commit comments