Closed ckrause closed 1 year ago
To find out whether the script is running on Linux or macOS, we could check $OSTYPE
. Example values: linux-gnu
, darwin22.1.0
.
On Linux, the architecture can be determined using lscpu | grep "Architecture" | awk '{print $2}'
. Example values: x86_64
, i686
, aarch64
.
Based on this info, we can determine which loda binary to use.
Make installation as easy as for homebrew: https://brew.sh/
=> create an installation script that automatically downloads the right binary and installs LODA.