Skip to content

Codechange: Simplify translations.sh script. - #61

Merged
LordAro merged 1 commit into
OpenTTD:masterfrom
PeterN:simplify-translations-script
Oct 24, 2026
Merged

LordAro merged 1 commit into
OpenTTD:masterfrom
PeterN:simplify-translations-script

Conversation

@PeterN

@PeterN PeterN commented Oct 24, 2026

Copy link
Copy Markdown
Member

translations.sh does some unnecessary things:

  • cat $1 |, piping it into a tool that can just read the file directly.
  • uses ls to get a list of files, which can be done with the shell's built-in globbing.

Remove these unecessary things.

Remove unnecessary use of `cat` and `ls`.
@LordAro
LordAro merged commit 5ad556b into OpenTTD:master Oct 24, 2026
3 checks passed
@PeterN
PeterN deleted the simplify-translations-script branch October 24, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants