summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index 65ac047..da61aed 100644
--- a/utils.c
+++ b/utils.c
@@ -15,15 +15,15 @@ int detectOsType()
{
switch (i)
{
- case pacman:
- if ( checkIfFileExists("/usr/bin/pacman") == 0 )
+ case apt:
+ if ( checkIfFileExists("/usr/bin/apt") == 0 )
{
exists = i;
}
break;
- case apt:
- if ( checkIfFileExists("/usr/bin/apt") == 0 )
+ case dnf:
+ if ( checkIfFileExists("/usr/bin/dnf") == 0 )
{
exists = i;
}
@@ -36,6 +36,13 @@ int detectOsType()
}
break;
+ case pacman:
+ if ( checkIfFileExists("/usr/bin/pacman") == 0 )
+ {
+ exists = i;
+ }
+ break;
+
case xbps:
if ( checkIfFileExists("/usr/bin/xbps-install") == 0 )
{