diff --git a/install.sh b/install.sh
index 999cb2e..ddff124 100755
--- a/install.sh
+++ b/install.sh
@@ -11,15 +11,21 @@ OS="$(uname -s | cut -d '-' -f 1)"
 case "$OS" in
 Linux)
     FILE="${FILE}_linux"
-    TARGET="/usr/local/bin"
+    if [ ! -n "${TARGET+set}" ]; then
+        TARGET="/usr/local/bin"
+    fi
     ;;
 Darwin)
     FILE="${FILE}_darwin"
-    TARGET="/usr/local/bin"
+    if [ ! -n "${TARGET+set}" ]; then
+        TARGET="/usr/local/bin"
+    fi
     ;;
 MINGW64_NT)
     FILE="${FILE}_windows"
-    TARGET="/c/Windows"
+    if [ ! -n "${TARGET+set}" ]; then
+        TARGET="/c/Windows"
+    fi
     ;;
 *)
     echo "Unknown operating system: $OS"
@@ -27,6 +33,7 @@ MINGW64_NT)
     ;;
 esac
 
+
 # Include architecture in file name.
 ARCH="$(uname -m)"
 case "$ARCH" in