Skip to content

Commit

Permalink
remove useless if check
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Nov 17, 2024
1 parent 651d6ae commit 742ce15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/operations/utility/sysconf.vala
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ private static int sysconf_main (string[] args) {
clear_env();
print (colorize (_ ("Running sysconf:"), yellow) + " " + get_value ("OPERATION"));
setenv("PATH","/sbin:/bin:/usr/sbin:/usr/bin", 1);
setenv ("OPERATION", get_value ("OPERATION"), 1);

if (get_value ("OPERATION") != "install" && get_value ("OPERATION") != "remove") {
setenv ("OPERATION", get_value ("OPERATION"), 1);
}
if (DESTDIR != "/") {
run_args ( {"chroot", get_destdir (), "ldconfig"});
}else {
Expand Down

0 comments on commit 742ce15

Please sign in to comment.