added pop OS as possible debian like OS
authorFred T. Hamster <fred@gruntose.com>
Tue, 24 Oct 2023 18:25:33 +0000 (14:25 -0400)
committerFred T. Hamster <fred@gruntose.com>
Tue, 24 Oct 2023 18:25:33 +0000 (14:25 -0400)
scripts/core/functions.sh

index c1401efe3682d09a7478bd8842b42ee7bfdc4516..48e819050e9cd232955b2f0b0e2e34291ccc176a 100644 (file)
@@ -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