projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4632b4b
)
added pop OS as possible debian like OS
author
Fred T. Hamster
<fred@gruntose.com>
Tue, 24 Oct 2023 18:25:33 +0000
(14:25 -0400)
committer
Fred T. Hamster
<fred@gruntose.com>
Tue, 24 Oct 2023 18:25:33 +0000
(14:25 -0400)
scripts/core/functions.sh
patch
|
blob
|
history
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index c1401efe3682d09a7478bd8842b42ee7bfdc4516..48e819050e9cd232955b2f0b0e2e34291ccc176a 100644
(file)
--- 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.
# 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
if [ $DEBIAN_LIKE -eq 1 ]; then
# success; this is debianish.
return 0