From: Silvio Rhatto Date: Thu, 1 Apr 2021 19:43:14 +0000 (-0300) Subject: Fix: trashman_distro: /etc/os-release support X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e227b94ca9c3df5fdd6315bf2a2c10725dca0de4;p=trashman.git Fix: trashman_distro: /etc/os-release support --- diff --git a/share/trashman/trashman/functions b/share/trashman/trashman/functions index a29ab4f..4fbd24c 100644 --- a/share/trashman/trashman/functions +++ b/share/trashman/trashman/functions @@ -33,7 +33,9 @@ trashman_family() { trashman_distro() { local uname="`trashman_family`" - if [ "$uname" = "linux" ]; then + if [ -e "/etc/os-release" ]; then + grep "^ID=" /etc/os-release | cut -d '=' -f 2 + elif [ "$uname" = "linux" ]; then if [ -e "/etc/debian_version" ]; then echo "debian" else