mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
Add more error checking and improved readability
This commit is contained in:
1 parent
fe565b97ad
commit
a9e72b579e
12 files changed
+240
-234
No files matched your search
@@ -126,11 +126,11 @@ int exec_checkra1n(void) {
|
||||
#endif
|
||||
checkra1n_exec: {};
|
||||
char args[0x10] = "-E";
|
||||
if (checkrain_option_enabled(host_flags, host_option_demote)) strncat(args, "d", 0xf);
|
||||
if (!checkrain_option_enabled(host_flags, palerain_option_checkrain_is_clone)) {
|
||||
if (checkrain_options_enabled(host_flags, host_option_demote)) strncat(args, "d", 0xf);
|
||||
if (!checkrain_options_enabled(host_flags, palerain_option_checkrain_is_clone)) {
|
||||
strncat(args, "p", 0xf);
|
||||
if (verbose >= 2) strncat(args, "v", 0xf);
|
||||
if (checkrain_option_enabled(host_flags, host_option_no_colors)) strncat(args, "n", 0xf);
|
||||
if (checkrain_options_enabled(host_flags, host_option_no_colors)) strncat(args, "n", 0xf);
|
||||
} else {
|
||||
strncat(args, "R", 0xf);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user