Improve distro renaming for trisquel
This commit is contained in:
parent
e529f22bb3
commit
70c809f222
|
@ -42,12 +42,16 @@ fi
|
||||||
}
|
}
|
||||||
exit_ifinstalled jitsi-meet
|
exit_ifinstalled jitsi-meet
|
||||||
|
|
||||||
if [ $DIST = flidas ]; then
|
rename_distro() {
|
||||||
DIST="xenial"
|
if [ "$DIST" = "$1" ]; then
|
||||||
fi
|
DIST="$2"
|
||||||
if [ $DIST = etiona ]; then
|
|
||||||
DIST="bionic"
|
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
#Trisquel distro renaming
|
||||||
|
rename_distro flidas xenial
|
||||||
|
rename_distro etiona bionic
|
||||||
|
rename_distro nabia focal
|
||||||
|
|
||||||
install_ifnot() {
|
install_ifnot() {
|
||||||
if [ "$(dpkg-query -W -f='${Status}' $1 2>/dev/null | grep -c "ok installed")" == "1" ]; then
|
if [ "$(dpkg-query -W -f='${Status}' $1 2>/dev/null | grep -c "ok installed")" == "1" ]; then
|
||||||
echo " $1 is installed, skipping..."
|
echo " $1 is installed, skipping..."
|
||||||
|
|
Loading…
Reference in New Issue