mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-14 22:20:59 +00:00
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:
1 parent
600dc1a75b
commit
104adebbf4
13 files changed
+94
-111
No files matched your search
@@ -16,23 +16,23 @@ function do_call() {
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user