Skip to content

Commit

Permalink
moving installation Rust, because we need curl
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed May 9, 2024
1 parent 3c963b8 commit dc978d9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ while getopts "yd" opt; do
esac
done

echo "Install Rust Cargo compiler"
if [ $(command -v cargo &>/dev/null; echo $?) -eq 0 ]; then
echo "Cargo is installed"
else
curl https://sh.rustup.rs -sSf | sh -s -- ${YES}
fi

. "$HOME/.cargo/env"

echo "Capabilities & PAM packages installation"

if [ ! `id -u` -eq 0 ]; then
Expand Down Expand Up @@ -59,6 +50,15 @@ else
exit 2
fi

echo "Install Rust Cargo compiler"
if [ $(command -v cargo &>/dev/null; echo $?) -eq 0 ]; then
echo "Cargo is installed"
else
curl https://sh.rustup.rs -sSf | sh -s -- ${YES}
fi

. "$HOME/.cargo/env"

# ask for user to install bpf-linker
if [ "${YES}" == "-y" ]; then
echo "cargo install bpf-linker into /usr/local/bin"
Expand Down

0 comments on commit dc978d9

Please sign in to comment.