Use full debian_version

This commit is contained in:
Joshua Boniface 2023-01-17 10:54:47 -05:00
parent 00005c62d6
commit 2c68341883
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ TMPFILE=$(mktemp)
TGTFILE=/run/pvc-motd.dynamic TGTFILE=/run/pvc-motd.dynamic
NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )" NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )"
VERSION_ID="$( grep '^VERSION_ID=' /etc/os-release | awk -F'"' '{ print $2 }' )" VERSION_ID="$( cat /etc/debian_version )"
VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )" VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )"
DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\"" DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\""