wip
This commit is contained in:
parent
7a80b9850e
commit
6d9c1bb395
2 changed files with 6 additions and 13 deletions
15
yazi.sh
15
yazi.sh
|
@ -56,16 +56,12 @@
|
|||
sleep 0.3
|
||||
rm "$import"
|
||||
}
|
||||
# if command_exists curl; then
|
||||
# eval "$(curl -fsSL https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh)"
|
||||
# else
|
||||
# echo "curl is required, but missing.."
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
checkDependencies() {
|
||||
local deps=(
|
||||
ffmpeg
|
||||
make
|
||||
gcc
|
||||
7zip
|
||||
poppler
|
||||
)
|
||||
|
@ -81,9 +77,6 @@
|
|||
}
|
||||
|
||||
i_yazi() {
|
||||
# if ! command_exists make || ! command_exists gcc; then
|
||||
# echo_error "The script might run into issues, because of make and gcc not being installed. Please install it, and run the script again, if it fails!"
|
||||
# fi
|
||||
evalCargo
|
||||
if command_exists cargo; then
|
||||
echo_info "Installing yazi through cargo"
|
||||
|
@ -103,7 +96,6 @@
|
|||
|
||||
run cargo install --locked yazi-fm yazi-cli
|
||||
|
||||
c_yazi
|
||||
}
|
||||
|
||||
c_yazi() {
|
||||
|
@ -125,7 +117,8 @@
|
|||
_install yazi
|
||||
elif ! $opensuse; then
|
||||
if checkDependencies; then
|
||||
i_yazi
|
||||
i_yazi &&
|
||||
c_yazi
|
||||
fi
|
||||
else
|
||||
echo_warning "$distro is not compatible with this script"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue