From 8974507c7e7351ccb942fc76426160525e693cc8 Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Wed, 23 Sep 2020 20:27:44 +0100 Subject: Fixed Wrong Operator --- flags.c | 14 +++++++------- utils.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/flags.c b/flags.c index e103aee..d6b579d 100644 --- a/flags.c +++ b/flags.c @@ -65,13 +65,13 @@ void cleanPackages(int os) void help() { printf("PKG Options:\n" - "c - removes orphans and cleans the package cache\n" - "h - display this message\n" - "i - installs selected packages\n" - "q - display installed packages\n" - "r - remove a selected package\n" - "s - look up for a package in the available repositories\n" - "u - updates repos and packages\n\n"); + "c - removes orphans and cleans the package cache\n" + "h - display this message\n" + "i - installs selected packages\n" + "q - display installed packages\n" + "r - remove a selected package\n" + "s - look up for a package in the available repositories\n" + "u - updates repos and packages\n\n"); } void installPackages(int os, char *packages) diff --git a/utils.c b/utils.c index c2087e1..65ac047 100644 --- a/utils.c +++ b/utils.c @@ -11,7 +11,7 @@ int checkIfFileExists(char *path) int detectOsType() { int exists = ERROR; - for ( int i = 0; i < ENUMSIZE || exists == ERROR; i++ ) + for ( int i = 0; i < ENUMSIZE && exists == ERROR; i++ ) { switch (i) { -- cgit v1.2.3