bugfixing..

This commit is contained in:
pika 2025-05-26 16:05:36 +02:00
parent cd78b985ea
commit 4b25e96b9e

36
swww.sh
View file

@ -34,24 +34,6 @@
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
pen bold yellow "Installing cargo.."
curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh
sleep 2
. "$HOME/.cargo/env"
else
return 0
fi
}
check-cargo() { check-cargo() {
if command_exists cargo; then if command_exists cargo; then
return 0 return 0
@ -70,6 +52,24 @@
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 ! check-cargo; then
pen bold yellow "Installing cargo.."
curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh
sleep 2
. "$HOME/.cargo/env"
else
return 0
fi
}
cloneAndBuildSwww() { cloneAndBuildSwww() {
local err out local err out
local cloneDir="$(mktemp -d)" local cloneDir="$(mktemp -d)"