From: Silvio Rhatto Date: Mon, 5 Apr 2021 13:48:04 +0000 (-0300) Subject: Fix: use trashman_distro_release from VERSION_CODENAME X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=92bed023b9a434011d8a628ca1f372230ba05928;p=trashman.git Fix: use trashman_distro_release from VERSION_CODENAME --- diff --git a/share/trashman/trashman/functions b/share/trashman/trashman/functions index 83ef0cf..4551bc8 100644 --- a/share/trashman/trashman/functions +++ b/share/trashman/trashman/functions @@ -47,7 +47,8 @@ trashman_distro() { # Distro release version trashman_distro_release() { if [ -e "/etc/os-release" ]; then - grep "^VERSION=" /etc/os-release | cut -d '(' -f 2 | cut -d ')' -f 1 + #grep "^VERSION=" /etc/os-release | cut -d '(' -f 2 | cut -d ')' -f 1 + grep "^VERSION_CODENAME=" /etc/os-release | cut -d '=' -f 2 fi }