From 20d002a233915e5047eac4516a62424648511b0e Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Mon, 23 Dec 2024 16:27:46 +0100 Subject: [PATCH] chore: change directory installation Signed-off-by: Alessio Greggi --- README.md | 4 +++- install | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3cacf4..9214fae 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ So, `main.doSomething` is the symbol of the function we want to trace using `har Then, let's run `harpoon` to extract the syscalls from the function `main.doSomething`: ```shell -harpoon capture -f main.doSomething ./binary +harpoon capture -f main.doSomething -- ./binary read sigaltstack gettid @@ -58,6 +58,8 @@ You can easily download the latest release using the installation script: curl -s https://raw.githubusercontent.com/alegrey91/harpoon/main/install | sudo sh ``` +(If your current version is `<= v0.8.2`, remove it from `/usr/local/bin/` before installing the new one). + ### Build Or you can build `harpoon` manually by using the following steps: diff --git a/install b/install index bab3985..c8a458b 100644 --- a/install +++ b/install @@ -23,5 +23,5 @@ printf "[download succeded]\n" # install binary chmod +x "$BINARY_RELEASE_NAME" -mv "$BINARY_RELEASE_NAME" "/usr/local/bin/$BINARY_NAME" +mv "$BINARY_RELEASE_NAME" "/usr/sbin/$BINARY_NAME" printf "[installation succeded]\n"