Compare commits
2 commits
2ee7c164d1
...
4b25e96b9e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4b25e96b9e | ||
![]() |
cd78b985ea |
1 changed files with 19 additions and 1 deletions
20
swww.sh
20
swww.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue