bugfixing..
This commit is contained in:
parent
cd78b985ea
commit
4b25e96b9e
1 changed files with 18 additions and 18 deletions
36
swww.sh
36
swww.sh
|
@ -34,24 +34,6 @@
|
|||
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() {
|
||||
if command_exists cargo; then
|
||||
return 0
|
||||
|
@ -70,6 +52,24 @@
|
|||
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() {
|
||||
local err out
|
||||
local cloneDir="$(mktemp -d)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue