diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-04-05 10:48:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-04-05 10:48:04 -0300 |
commit | 92bed023b9a434011d8a628ca1f372230ba05928 (patch) | |
tree | b96b6408d42bce91bf7d57b48fbf0058453ba1bc | |
parent | c02b560cc4a5f91cdf3f244955d12b60cb0ab94b (diff) | |
download | trashman-92bed023b9a434011d8a628ca1f372230ba05928.tar.gz trashman-92bed023b9a434011d8a628ca1f372230ba05928.tar.bz2 |
Fix: use trashman_distro_release from VERSION_CODENAME
-rw-r--r-- | share/trashman/trashman/functions | 3 |
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 } |