This commit is contained in:
pika 2025-05-03 17:02:05 +02:00
parent 3773fd471e
commit dbf6268291

View file

@ -197,20 +197,17 @@ __validate__() {
}
instZellij() {
cargoInstall() {
if command_exists cargo; then
rustup update
sleep 1
cargo install --locked zellij
fi
}
if ! command_exists zellij; then
if ! cargoInstall; then
echo_error "Something went wrong.. Please look for the installation yourself!"
echo "Documentation: https://zellij.dev/documentation/installation.html#third-party-repositories"
fi
if ! command_exists rustup; then
_install rustup
rustup default stable
fi
if command_exists cargo; then
rustup update
sleep 1
cargo install --locked zellij
fi
}
__dep__() {
@ -235,7 +232,12 @@ __dep__() {
fi
done
instZellij
if ! command_exists zellij; then
if ! instZellij; then
echo_error "Something went wrong.. Please look for the installation yourself!"
echo "Documentation: https://zellij.dev/documentation/installation.html#third-party-repositories"
fi
fi
}
pkg_optional() {