summaryrefslogtreecommitdiffstats
path: root/lib/MGA
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MGA')
-rw-r--r--lib/MGA/DrakISO/BuildRoot.pm2
1 files changed, 1 insertions, 1 deletions
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 {