Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,29 @@ 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"
exit 1
;;
esac


# Include architecture in file name.
ARCH="$(uname -m)"
case "$ARCH" in
Expand Down