aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-05 10:48:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-05 10:48:04 -0300
commit92bed023b9a434011d8a628ca1f372230ba05928 (patch)
treeb96b6408d42bce91bf7d57b48fbf0058453ba1bc
parentc02b560cc4a5f91cdf3f244955d12b60cb0ab94b (diff)
downloadtrashman-92bed023b9a434011d8a628ca1f372230ba05928.tar.gz
trashman-92bed023b9a434011d8a628ca1f372230ba05928.tar.bz2
Fix: use trashman_distro_release from VERSION_CODENAME
-rw-r--r--share/trashman/trashman/functions3
1 files changed, 2 insertions, 1 deletions
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
}