Skip to content

Commit

Permalink
Add a step that removes an old gmon binary (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
keisku authored Apr 9, 2024
1 parent 2e3cfdf commit 0f0a934
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ EOF
docker build --platform linux/$arch -t $image_buildenv -f "$dockerfile_buildenv" .
rm "$dockerfile_buildenv"

rm -f $(pwd)/bin/gmon || true
docker run --platform linux/$arch -i \
-v $(pwd):/usr/src \
-e BPF_CLANG="clang" \
Expand All @@ -51,6 +52,7 @@ if [ "$1" = "build" ]; then
fi

if [ "$1" = "install" ]; then
sudo rm -f /usr/bin/gmon || true
sudo install ./bin/gmon /usr/bin/
exit 0
fi
Expand Down

0 comments on commit 0f0a934

Please sign in to comment.