testing..

This commit is contained in:
pika 2025-05-22 11:20:34 +02:00
parent 0b76a9b558
commit a032c5877c

View file

@ -14,7 +14,7 @@
# fedora = bool # fedora = bool
# opensuse = bool.... # opensuse = bool....
# You can then use it for, `if $arch; then` # You can then use it for, `if $arch; then`
# Also this gives you the _install command, which installs a package pased on the packagemanager/distro used. # Also this gives you the pkg-install command, which installs a package pased on the packagemanager/distro used.
# CAUTION: # CAUTION:
# This only wokrs for generic package names, like neovim, or vim, or tmux etc.. # 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.. # not every package packagemanager has the same packagenames for their packages..
@ -46,7 +46,7 @@
} }
# command for executing silent mode only when nessessairy # command for executing silent mode only when nessessairy
# ex: run "Building $PACKAGE" _install neovim # ex: run "Building $PACKAGE" pkg-install neovim
run() { run() {
local msg=$1 local msg=$1
local cmd="${@:1}" local cmd="${@:1}"
@ -93,7 +93,7 @@
if ! command_exists $pkg; then if ! command_exists $pkg; then
spin yellow bold "Installing $(pen red $pkg)" spin yellow bold "Installing $(pen red $pkg)"
sleep 1 sleep 1
if run --err err _install $pkg; then if run --err err pkg-install $pkg; then
check "$pkg $(pen green installed)!" check "$pkg $(pen green installed)!"
else else
throw "Something went wrong! Could not install $(pen bold red $pkg)" throw "Something went wrong! Could not install $(pen bold red $pkg)"