Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Update dove_download.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1703 authored Aug 2, 2021
1 parent 756fc5d commit 58edb2c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dove_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

1 comment on commit 58edb2c

@boozook
Copy link
Contributor

@boozook boozook commented on 58edb2c Aug 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #9

Please sign in to comment.