-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script to clean up fastlane file format
- Loading branch information
Showing
4 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Protejează spațiile personale și bunurile fără a compromite intimitatea | ||
Protejează spațiile personale și bunurile fără a compromite intimitatea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Zaštitite privatni prostor i lične stvari bez ugrožavanja privatnosti | ||
Zaštitite privatni prostor i lične stvari bez ugrožavanja privatnosti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Haven | ||
Haven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import glob | ||
import os | ||
|
||
os.chdir(os.path.join(os.path.dirname(__file__), '../fastlane/android')) | ||
for f in glob.glob('metadata/*/*.txt') + glob.glob('metadata/*/*/*.txt'): | ||
if os.path.getsize(f) == 0: | ||
os.remove(f) | ||
continue | ||
|
||
with open(f) as fp: | ||
data = fp.read() | ||
with open(f, 'w') as fp: | ||
fp.write(data.rstrip()) | ||
fp.write('\n') |