From 58edb2c40417ace2f3b80606bd8034dfa72ed32c Mon Sep 17 00:00:00 2001 From: Vitaliy X <42241093+mrz1703@users.noreply.github.com> Date: Mon, 2 Aug 2021 19:38:09 +0300 Subject: [PATCH] Update dove_download.sh --- dove_download.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dove_download.sh b/dove_download.sh index d3bfbee..3c573a6 100644 --- a/dove_download.sh +++ b/dove_download.sh @@ -140,14 +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 -set -x -if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "freebsd"* || "$OSTYPE" == "darwin"* || "$OSTYPE" == "cygwin" ]]; then -# ln -sf "$file_path" /usr/local/bin/dove - ln -sf "$file_path" $HOME/.cargo/bin/dove +if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "freebsd"* || "$OSTYPE" == "cygwin" ]]; then + mkdir -p $HOME/.local/bin + ln -sf "$file_path" $HOME/.local/bin/dove + echo "$HOME/.local/bin" >> $GITHUB_PATH +elif [[ "$OSTYPE" == "darwin"* ]]; then + ln -sf "$file_path" /usr/local/bin/dove elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then mkdir -p "$HOME/.local/bin" ln -sf "$file_path" "$HOME/.local/bin/dove"