diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2020-05-13 12:43:25 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-05-13 12:43:25 +0200 |
| commit | 4176b3a08929558fc55ee74b9126e293decd5b35 (patch) | |
| tree | 6e39407b10b84581ba3bf07935ae33c8e52a783b /env.sh | |
| parent | 39f028115a338c99efd23d8179831fa3d951ddea (diff) | |
| parent | f9049707dd0efd9c17534399886763ae3ae84f5b (diff) | |
| download | mullvadvpn-4176b3a08929558fc55ee74b9126e293decd5b35.tar.xz mullvadvpn-4176b3a08929558fc55ee74b9126e293decd5b35.zip | |
Merge branch 'upgrade-openvpn-openssl'
Diffstat (limited to 'env.sh')
| -rwxr-xr-x | env.sh | 32 |
1 files changed, 11 insertions, 21 deletions
@@ -2,29 +2,19 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -if [ -n "$1" ]; then - TARGET="$1" -else - TARGET="" -fi - -if [ -z "$TARGET" ]; then - case "$(uname -s)" in - Linux*) - TARGET="x86_64-unknown-linux-gnu" - ;; - Darwin*) - TARGET="x86_64-apple-darwin" - ;; - MINGW*|MSYS_NT*) - TARGET="x86_64-pc-windows-msvc" - ;; - esac -fi +case "$(uname -s)" in + Linux*) + TARGET="x86_64-unknown-linux-gnu" + ;; + Darwin*) + TARGET="x86_64-apple-darwin" + ;; + MINGW*|MSYS_NT*) + TARGET="x86_64-pc-windows-msvc" + ;; +esac case "$TARGET" in - *android*) - ;; *linux*) export LIBMNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$TARGET" export LIBNFTNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$TARGET" |
