From 6d9c1bb395352f2932dbbf59abca41e75e0b30dc Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 18 May 2025 17:32:05 +0200 Subject: [PATCH] wip --- template.sh | 4 ++-- yazi.sh | 15 ++++----------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/template.sh b/template.sh index 19daa03..6624247 100644 --- a/template.sh +++ b/template.sh @@ -10,7 +10,7 @@ unset PACKAGE # ─< argument list variables >──────────────────────────────────────────────────────────── - unset silent + silent=false sleep 0.1 @@ -25,7 +25,7 @@ for arg in "$@"; do case "$arg" in --silent | -s) - silent=true + export silent=true ;; esac done diff --git a/yazi.sh b/yazi.sh index 70b1b47..872734d 100644 --- a/yazi.sh +++ b/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"