From a2123c15a7551b1824d58b2fbe7b1dc1edf12f59 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 14 Jan 2018 12:47:38 +0000 Subject: Restore check for file existence when cleaning system config files. The check needs to be run as root, so we have to do it the hard way. --- lib/MGA/DrakISO/BuildRoot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm index 177d5af..cc47bd1 100644 --- a/lib/MGA/DrakISO/BuildRoot.pm +++ b/lib/MGA/DrakISO/BuildRoot.pm @@ -651,7 +651,7 @@ sub configure_draklive_resize { sub clean_system_conf_file { my ($file) = @_; - run_as_root('sed', '-i', '/^[^#]/d', $file); + run_as_root('sed', '-i', '/^[^#]/d', $file) if run_as_root('test', '-e', $file); } sub write_dist_lists { -- cgit v1.2.1