Compare commits
2 commits
5b0a011eda
...
443c232b95
Author | SHA1 | Date | |
---|---|---|---|
443c232b95 | |||
868fe9d7c0 |
|
@ -52,7 +52,7 @@ For Debian versions : `is_debian`, `is_debian_stretch`, `is_debian_jessie`…
|
|||
For packs : `is_pack_web`, `is_pack_samba`.
|
||||
For installed packages : `is_installed <package> [<package>]`.
|
||||
|
||||
### Extact variables
|
||||
### Extract variables
|
||||
|
||||
It's better not to inline function calls inside tests. Instead of this :
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
|||
|
||||
### Added
|
||||
|
||||
* trixie and forky support (Debian 13, 14)
|
||||
|
||||
### Changed
|
||||
|
||||
### Deprecated
|
||||
|
|
|
@ -68,6 +68,8 @@ detect_os() {
|
|||
10) DEBIAN_RELEASE="buster";;
|
||||
11) DEBIAN_RELEASE="bullseye";;
|
||||
12) DEBIAN_RELEASE="bookworm";;
|
||||
13) DEBIAN_RELEASE="trixie";;
|
||||
14) DEBIAN_RELEASE="forky";;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
@ -85,6 +87,12 @@ is_debian_bullseye() {
|
|||
is_debian_bookworm() {
|
||||
test "${DEBIAN_RELEASE}" = "bookworm"
|
||||
}
|
||||
is_debian_trixie() {
|
||||
test "${DEBIAN_RELEASE}" = "trixie"
|
||||
}
|
||||
is_debian_forky() {
|
||||
test "${DEBIAN_RELEASE}" = "forky"
|
||||
}
|
||||
|
||||
is_pack_web(){
|
||||
test -e /usr/share/scripts/web-add.sh || test -e /usr/share/scripts/evoadmin/web-add.sh
|
||||
|
|
Loading…
Reference in a new issue