File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ function detect_system() {
6868 ) "
6969 elif [[ -f /etc/debian_version ]]; then
7070 system_name=" debian"
71- system_version=" $( awk -F. ' {print $1"."$2 }' /etc/debian_version) "
71+ system_version=" $( awk -F. ' {print $1}' /etc/debian_version) "
7272 system_arch=" $( dpkg --print-architecture ) "
7373 elif [[ -f /etc/os-release ]] && [[ " $( < /etc/os-release) " == * " ID=debian" * ]]; then
7474 system_name=" debian"
75- system_version=" $( awk -F' =' ' $1=="VERSION_ID"{gsub(/"/,"");print $2}' /etc/os-release | awk -F. ' {print $1"."$2 }' ) " # '
75+ system_version=" $( awk -F' =' ' $1=="VERSION_ID"{gsub(/"/,"");print $2}' /etc/os-release | awk -F. ' {print $1}' ) " # '
7676 system_arch=" $( dpkg --print-architecture ) "
7777 elif [[ -f /etc/fedora-release ]]; then
7878 system_name=" fedora"
You can’t perform that action at this time.
0 commit comments