From 76a8b5de37ac1a77c759930825200e7373efc8bd Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 14 Aug 2024 07:51:10 +0300 Subject: [PATCH] beeper: attempt to recognise Arch the 'proper' way --- bash/usr-local-bin/beeper | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/usr-local-bin/beeper b/bash/usr-local-bin/beeper index c40c70e..ab5058d 100755 --- a/bash/usr-local-bin/beeper +++ b/bash/usr-local-bin/beeper @@ -1,8 +1,11 @@ #!/usr/bin/env bash set -x -if [ "$(lsb_release -si)" == "Arch" ]; then - echo "Remember! sudo pacman -S fuse2" +if [ -f /etc/os-release ]; then + . /etc/os-release + if [ "$ID" == "arch" ]; then + echo "Remember! sudo pacman -S fuse2" + fi fi # This assumes the usage of GearLever with the default directory.