From aafdcb6a5639b9d1a57a04ec4ccffa48c9326642 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Tue, 24 Oct 2023 14:25:33 -0400 Subject: [PATCH] added pop OS as possible debian like OS --- scripts/core/functions.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.34.1