From 92bed023b9a434011d8a628ca1f372230ba05928 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 5 Apr 2021 10:48:04 -0300 Subject: Fix: use trashman_distro_release from VERSION_CODENAME --- share/trashman/trashman/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3