tryed better way for getting import script

This commit is contained in:
pika 2025-05-11 12:12:18 +02:00
parent a386e00079
commit cd9fd58475

16
yazi.sh
View file

@ -18,13 +18,25 @@
# CAUTION:
# This only wokrs for generic package names, like neovim, or vim, or tmux etc..
# not every package packagemanager has the same packagenames for their packages..
getImports() {
i="https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh"
import="$(mktemp)"
if command_exists curl; then
eval "$(curl -fsSL https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh)"
curl -fsSL https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh -o $import
else
echo "curl is required, but missing.."
exit 1
fi
source "$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
@ -85,5 +97,7 @@
fi
}
if getImports; then
main
fi
}