fix: support systems without lsb_release
This commit is contained in:
parent
d53c764293
commit
d594dcf443
2 changed files with 10 additions and 2 deletions
10
README.md
10
README.md
|
@ -8,7 +8,7 @@ Central feature is the modular directory structure
|
||||||
that can handle everything from native package managers
|
that can handle everything from native package managers
|
||||||
over installation from source
|
over installation from source
|
||||||
to copying or executing scripts from a URL.
|
to copying or executing scripts from a URL.
|
||||||
Similar as in [tldr](https://github.com/tldr-pages/tldr),
|
Similar to [tldr](https://github.com/tldr-pages/tldr),
|
||||||
creating alternative frontends is easy and appreciated.
|
creating alternative frontends is easy and appreciated.
|
||||||
|
|
||||||
Instalee can install the same set of packages on any system
|
Instalee can install the same set of packages on any system
|
||||||
|
@ -193,3 +193,11 @@ but the details still need to be fleshed out.
|
||||||
+ underscore extension might be superfluous through that, since `ext` was somewhat a proxy for a proper `provider` configuraion
|
+ underscore extension might be superfluous through that, since `ext` was somewhat a proxy for a proper `provider` configuraion
|
||||||
- Use system subdirectories for handlers and groups,
|
- Use system subdirectories for handlers and groups,
|
||||||
which are used by default when system is detected
|
which are used by default when system is detected
|
||||||
|
|
||||||
|
## Notable Projects
|
||||||
|
|
||||||
|
- another universal package manager,
|
||||||
|
but without affecting the system:
|
||||||
|
https://github.com/teaxyz/cli
|
||||||
|
- universal package updater:
|
||||||
|
https://github.com/topgrade-rs/topgrade
|
||||||
|
|
2
instalee
2
instalee
|
@ -148,7 +148,7 @@ runinstalee() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! test -f "$handlers"
|
if ! test -f "$handlers"
|
||||||
then copy="$(find "$dir_home" -name "handlers.available.*" -exec sh -c "echo {} | rev | cut -d'.' -f1 | rev | xargs -i% expr $(lsb_release -s -i | tr 'A-Z' 'a-z') : % >/dev/null" \; -a -print)" &&
|
then copy="$(find "$dir_home" -name "handlers.available.*" -exec sh -c "echo {} | rev | cut -d'.' -f1 | rev | xargs -i% expr $(lsb_release -s -i | tr 'A-Z' 'a-z' || cat /etc/os-release | grep '^ID=' | cut -d= -f2) : % >/dev/null" \; -a -print)" &&
|
||||||
test -n "$copy" &&
|
test -n "$copy" &&
|
||||||
echo "Bootstrapping available handlers from $copy" &&
|
echo "Bootstrapping available handlers from $copy" &&
|
||||||
cp "$copy" "$handlers" || {
|
cp "$copy" "$handlers" || {
|
||||||
|
|
Loading…
Add table
Reference in a new issue