actually remove temporary file on installation success
[debian/sudo] / debian / sudo.postinst
index ff4a0804dc29340673a07a5e04f6d03824878300..454d8c7e69f0e1f78477d1a0eca32eee2fb77834 100644 (file)
@@ -52,9 +52,7 @@ if ($gid != 27) {
 print "Creating group 'sudo' with gid = $gid\n";
 system("groupadd -g $gid sudo");
 
-# if we've gotten this fare .. remove the saved, unchanged old sudoers file
-if ( -f "/etc/sudoers.pre-conffile") {
-    system ('rm -f /etc/sudoers.pre-conffile');
-}
+# if we've gotten this far .. remove the saved, unchanged old sudoers file
+system ('rm -f /etc/sudoers.pre-conffile');
 
 print "";