]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: use trashman_distro_release from VERSION_CODENAME
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Apr 2021 13:48:04 +0000 (10:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Apr 2021 13:48:04 +0000 (10:48 -0300)
share/trashman/trashman/functions

index 83ef0cf7eb0705f6365f7b2a5c8bf28e2fefe43f..4551bc8807d7fae54cae8fb09e3a10d6836ebae4 100644 (file)
@@ -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
 }