summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakedm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-02-26 14:36:58 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-02-26 14:36:58 +0000
commitc3f25a1bfdfa4ed93054a5948856eeed1ac584b4 (patch)
tree4c36ebc73220301c89c5ed39df940bcc253a51b6 /perl-install/standalone/drakedm
parent25f1f4f08086f42958eb2f8ff0a88494f6918457 (diff)
downloaddrakx-c3f25a1bfdfa4ed93054a5948856eeed1ac584b4.tar
drakx-c3f25a1bfdfa4ed93054a5948856eeed1ac584b4.tar.gz
drakx-c3f25a1bfdfa4ed93054a5948856eeed1ac584b4.tar.bz2
drakx-c3f25a1bfdfa4ed93054a5948856eeed1ac584b4.tar.xz
drakx-c3f25a1bfdfa4ed93054a5948856eeed1ac584b4.zip
on laurent request, strip the empty lines and add a end-of-line character on
last line
Diffstat (limited to 'perl-install/standalone/drakedm')
-rw-r--r--perl-install/standalone/drakedm3
1 files changed, 2 insertions, 1 deletions
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;
}