neogeek / get-unity

🕹 Command line tool for getting the download URL for the latest or specific version of Unity.
https://get-unity.herokuapp.com/
MIT License
47 stars 7 forks source link

Get Unity version by passing ProjectSettings/ProjectVersion.txt to command #2

Closed neogeek closed 4 years ago

neogeek commented 4 years ago
$ cat ProjectSettings/ProjectVersion.txt | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+[a-z]{1}[0-9]+' | head -1
neogeek commented 4 years ago

Add --file <path> flag.