diff options
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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 ) { |