Skip to content

Commit

Permalink
build: update script
Browse files Browse the repository at this point in the history
  • Loading branch information
oneofthezombies committed Feb 12, 2024
1 parent e537f34 commit c403059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion installs/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curl -L -s https://api.github.com/repos/oneofthezombies/kill-tree/releases/lates
cut -d '"' -f 4 | \
xargs curl -L -s -o kill-tree && \
chmod +x kill-tree && \
mv kill-tree $bin_path/kill-tree && \
mv -f kill-tree $bin_path/kill-tree && \
rm -rf $temp_dir

echo "kill-tree install location: $bin_path/kill-tree"
Expand Down
4 changes: 3 additions & 1 deletion installs/macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ fi
temp_dir=$(mktemp -d)
cd $temp_dir

echo "If required, please enter your password for sudo access..."

curl -L -s https://api.github.com/repos/oneofthezombies/kill-tree/releases/latest | \
grep "kill-tree-macos-x86_64" | \
grep "browser_download_url" | \
cut -d '"' -f 4 | \
xargs curl -L -s -o kill-tree && \
chmod +x kill-tree && \
mv kill-tree $bin_path/kill-tree && \
mv -f kill-tree $bin_path/kill-tree && \
rm -rf $temp_dir

echo "kill-tree install location: $bin_path/kill-tree"
Expand Down

0 comments on commit c403059

Please sign in to comment.