This commit is contained in:
pika 2025-05-20 17:28:17 +02:00
parent e8471c71c1
commit 2dbbc8854d

View file

@ -23,13 +23,13 @@ rm "$import"
After importing, these boolean variables are available for distribution checks:
$arch - true/false for Arch Linux and derivatives
$debian - true/false for Debian and derivatives
$ubuntu - true/false for Ubuntu and derivatives
$fedora - true/false for Fedora and derivatives
$opensuse - true/false for openSUSE
$alpine - true/false for Alpine Linux
$distro - contains the detected distro name (e.g. "arch", "debian")
`$arch` - true/false for Arch Linux and derivatives </br>
`$debian` - true/false for Debian and derivatives </br>
`$ubuntu` - true/false for Ubuntu and derivatives </br>
`$fedora` - true/false for Fedora and derivatives </br>
`$opensuse` - true/false for openSUSE </br>
`$alpine` - true/false for Alpine Linux </br>
`$distro` - contains the detected distro name (e.g. "arch", "debian", "fedora"..) </br>
Example usage:
@ -48,9 +48,9 @@ esac
1. Package Management:
\_install pkg1 pkg2 - Installs packages using the correct package manager
\_remove pkg1 pkg2 - Removes packages (CAUTION: no confirmation!)
checkAndInstall pkg1 pkg2 - Checks if command exists, installs if missing
`\_install pkg1 pkg2` - Installs packages using the correct package manager
`\_remove pkg1 pkg2` - Removes packages (CAUTION: no confirmation!)
`checkAndInstall pkg1 pkg2` - Checks if command exists, installs if missing
Example: