From c403059da110d5d7140524aa44b4d1613ba19efd Mon Sep 17 00:00:00 2001 From: oneofthezombies Date: Tue, 13 Feb 2024 08:05:29 +0900 Subject: [PATCH] build: update script --- installs/linux.sh | 2 +- installs/macos.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/installs/linux.sh b/installs/linux.sh index fddeddc..d5fe3aa 100755 --- a/installs/linux.sh +++ b/installs/linux.sh @@ -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" diff --git a/installs/macos.sh b/installs/macos.sh index 01b698f..ff27e17 100755 --- a/installs/macos.sh +++ b/installs/macos.sh @@ -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"