fix style nitpicks (#12995)

* disable restriction (for now)

* reduce duplication

* remove duplication in scim view

* fix diff

* fix reassign

* remove statment that is always wrong

* log with full context

* allign order to anguage defaults

* adress shelldre:S7688
This commit is contained in:
Matthias Mair authored and GitHub committed 2026-10-13 10:02:02 +11:00
1 parent 600dc1a75b
commit 104adebbf4
13 files changed
+94 -111

No files matched your search

+5 -5
View File
@@ -26,23 +26,23 @@ root_command() {
}
function get_distribution {
if [ -f /etc/os-release ]; then
if [[ -f /etc/os-release ]]; then
. /etc/os-release
OS=$NAME
VER=$VERSION_ID
elif type lsb_release >/dev/null 2>&1; then
OS=$(lsb_release -si)
VER=$(lsb_release -sr)
elif [ -f /etc/lsb-release ]; then
elif [[ -f /etc/lsb-release ]]; then
. /etc/lsb-release
OS=$DISTRIB_ID
VER=$DISTRIB_RELEASE
elif [ -f /etc/debian_version ]; then
elif [[ -f /etc/debian_version ]]; then
OS=Debian
VER=$(cat /etc/debian_version)
elif [ -f /etc/SuSe-release ]; then
elif [[ -f /etc/SuSe-release ]]; then
OS=SEL
elif [ -f /etc/redhat-release ]; then
elif [[ -f /etc/redhat-release ]]; then
OS=RedHat
else
OS=$(uname -s)