X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;fp=grml2usb;h=5a94e10f26a5e81e51be818a27c25c47d9f18346;hp=c53f58ba8e50181832b5033428c3d6f44906cf5c;hb=f0e3c9362fe714123e8090207b382ceec0a87416;hpb=ed5b633be961ef6b3651b1e4c7756538c032aa19 diff --git a/grml2usb b/grml2usb index c53f58b..5a94e10 100755 --- a/grml2usb +++ b/grml2usb @@ -1323,7 +1323,7 @@ def add_entry_if_not_present(filename, entry): @filename: name of the file @entry: data to write to the file """ - data = open(filename, "a+") + data = open(filename, "r+") for line in data: if line == entry: break