Skip to content

Commit

Permalink
Update configure.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP authored Sep 22, 2023
1 parent 04012ef commit 3aeb6c6
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,21 @@ else
exit 2
fi

echo "cargo install bpf-linker into /usr/local/bin"
cargo install --force bpf-linker
mv -f ~/.cargo/bin/bpf-linker /usr/local/bin
# ask for user to install bpf-linker
if [ "${YES}" == "-y" ]; then
echo "cargo install bpf-linker into /usr/local/bin"
cargo install --force bpf-linker
mv -f ~/.cargo/bin/bpf-linker /usr/local/bin
else
read -r -p "Install bpf-linker in /usr/local/bin? (mandatory for build) [y/N] " response
case "$response" in
[yY][eE][sS]|[yY]|[oO])
echo "cargo install bpf-linker into /usr/local/bin"
cargo install --force bpf-linker
mv -f ~/.cargo/bin/bpf-linker /usr/local/bin
;;
esac
fi

export $(grep -h '^ID' /etc/*-release)

Expand Down

0 comments on commit 3aeb6c6

Please sign in to comment.