From: Fred T. Hamster Date: Tue, 24 Oct 2023 18:25:33 +0000 (-0400) Subject: added pop OS as possible debian like OS X-Git-Tag: 2.140.188^2~54 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=aafdcb6a5639b9d1a57a04ec4ccffa48c9326642;p=feisty_meow.git added pop OS as possible debian like OS --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index c1401efe..48e81905 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -446,8 +446,12 @@ if [ -z "$skip_all" ]; then # returns a successful value (0) if this system is debian or ubuntu. function debian_like() { # decide if we think this is debian or ubuntu or a variant. - DEBIAN_LIKE=$(if [ ! -z "$(grep -i debian /etc/issue)" \ - -o ! -z "$(grep -i ubuntu /etc/issue)" ]; then echo 1; else echo 0; fi) + DEBIAN_LIKE=$( \ + if [ \ + ! -z "$(grep -i debian /etc/issue)" -o \ + ! -z "$(grep -i ubuntu /etc/issue)" -o \ + ! -z "$(grep -i 'Pop._OS' /etc/issue)" \ + ]; then echo 1; else echo 0; fi) if [ $DEBIAN_LIKE -eq 1 ]; then # success; this is debianish. return 0