summaryrefslogtreecommitdiffhomepage
path: root/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'env.sh')
-rwxr-xr-xenv.sh32
1 files changed, 11 insertions, 21 deletions
diff --git a/env.sh b/env.sh
index 27957509b4..ea60f3781b 100755
--- a/env.sh
+++ b/env.sh
@@ -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"