diff --git a/dove_download.sh b/dove_download.sh index ae4813d..63d770e 100644 --- a/dove_download.sh +++ b/dove_download.sh @@ -140,10 +140,12 @@ echo "chmod 1755 $file_path" chmod 1755 $file_path echo "create link $file_path" -if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "freebsd"* || "$OSTYPE" == "cygwin" ]]; then - mkdir -p $HOME/.local/bin - ln -sf "$file_path" $HOME/.local/bin/dove -elif [[ "$OSTYPE" == "darwin"* ]]; then +# if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "freebsd"* || "$OSTYPE" == "cygwin" ]]; then +# mkdir -p $HOME/.local/bin +# ln -sf "$file_path" $HOME/.local/bin/dove +# elif [[ "$OSTYPE" == "darwin"* ]]; then +set -x +if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "freebsd"* || "$OSTYPE" == "cygwin" || "$OSTYPE" == "darwin"* ]]; then ln -sf "$file_path" /usr/local/bin/dove elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then mkdir -p "$HOME/.local/bin"