Compare commits

...

2 commits

Author SHA1 Message Date
pika
4b25e96b9e bugfixing.. 2025-05-26 16:05:36 +02:00
pika
cd78b985ea bugfixing.. 2025-05-26 16:03:34 +02:00

20
swww.sh
View file

@ -34,13 +34,31 @@
fi
}
check-cargo() {
if command_exists cargo; then
return 0
else
if [ -e "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
else
return 69
fi
if command-exists cargo; then
return 0
else
return 69
fi
fi
}
checkBuildDependencies() {
echo_pkg deps "Installing build dependencies.."
local deps=(git xdg-output liblz4-dev wayland-protocols)
# echo "DEBUG: Installing ${deps[@]}"
check-and-install ${deps[@]}
if ! command_exists cargo; then
if ! check-cargo; then
pen bold yellow "Installing cargo.."
curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh