From 742ce158966d789a01f91ea7fd33deff566e93a0 Mon Sep 17 00:00:00 2001 From: sulincix Date: Sun, 17 Nov 2024 14:05:55 +0000 Subject: [PATCH] remove useless if check --- src/operations/utility/sysconf.vala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/operations/utility/sysconf.vala b/src/operations/utility/sysconf.vala index b06cadc..d386576 100755 --- a/src/operations/utility/sysconf.vala +++ b/src/operations/utility/sysconf.vala @@ -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 {