Compare commits
No commits in common. "4b25e96b9e7e452541d57549436a5e7f4057201c" and "2ee7c164d1f6402e4fbba9ae9d9aaaeac0a0e11a" have entirely different histories.
4b25e96b9e
...
2ee7c164d1
1 changed files with 1 additions and 19 deletions
20
swww.sh
20
swww.sh
|
@ -34,31 +34,13 @@
|
||||||
fi
|
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() {
|
checkBuildDependencies() {
|
||||||
echo_pkg deps "Installing build dependencies.."
|
echo_pkg deps "Installing build dependencies.."
|
||||||
local deps=(git xdg-output liblz4-dev wayland-protocols)
|
local deps=(git xdg-output liblz4-dev wayland-protocols)
|
||||||
# echo "DEBUG: Installing ${deps[@]}"
|
# echo "DEBUG: Installing ${deps[@]}"
|
||||||
check-and-install ${deps[@]}
|
check-and-install ${deps[@]}
|
||||||
|
|
||||||
if ! check-cargo; then
|
if ! command_exists cargo; then
|
||||||
pen bold yellow "Installing cargo.."
|
pen bold yellow "Installing cargo.."
|
||||||
curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh
|
curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue