This commit is contained in:
pika 2025-05-18 17:32:05 +02:00
parent 7a80b9850e
commit 6d9c1bb395
2 changed files with 6 additions and 13 deletions

View file

@ -10,7 +10,7 @@
unset PACKAGE unset PACKAGE
# ─< argument list variables >──────────────────────────────────────────────────────────── # ─< argument list variables >────────────────────────────────────────────────────────────
unset silent silent=false
sleep 0.1 sleep 0.1
@ -25,7 +25,7 @@
for arg in "$@"; do for arg in "$@"; do
case "$arg" in case "$arg" in
--silent | -s) --silent | -s)
silent=true export silent=true
;; ;;
esac esac
done done

15
yazi.sh
View file

@ -56,16 +56,12 @@
sleep 0.3 sleep 0.3
rm "$import" 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() { checkDependencies() {
local deps=( local deps=(
ffmpeg ffmpeg
make
gcc
7zip 7zip
poppler poppler
) )
@ -81,9 +77,6 @@
} }
i_yazi() { 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 evalCargo
if command_exists cargo; then if command_exists cargo; then
echo_info "Installing yazi through cargo" echo_info "Installing yazi through cargo"
@ -103,7 +96,6 @@
run cargo install --locked yazi-fm yazi-cli run cargo install --locked yazi-fm yazi-cli
c_yazi
} }
c_yazi() { c_yazi() {
@ -125,7 +117,8 @@
_install yazi _install yazi
elif ! $opensuse; then elif ! $opensuse; then
if checkDependencies; then if checkDependencies; then
i_yazi i_yazi &&
c_yazi
fi fi
else else
echo_warning "$distro is not compatible with this script" echo_warning "$distro is not compatible with this script"