From c3f25a1bfdfa4ed93054a5948856eeed1ac584b4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 26 Feb 2003 14:36:58 +0000 Subject: on laurent request, strip the empty lines and add a end-of-line character on last line --- perl-install/standalone/drakedm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/drakedm b/perl-install/standalone/drakedm index 92dadaff5..32d4e03de 100644 --- a/perl-install/standalone/drakedm +++ b/perl-install/standalone/drakedm @@ -50,7 +50,8 @@ several different X sessions on your local machine at the same time.")), $new_dm = { reverse %dm }->{$new_dm}; substInFile { s/^(DISPLAYMANAGER)=.*(\n|)//; - $_ .= "\nDISPLAYMANAGER=$new_dm" if eof; + s/^\n//g; + $_ .= "\nDISPLAYMANAGER=$new_dm\n" if eof; } $cfg_file; } -- cgit v1.2.1