From e98a94640a01bfff62216878a69417f2c5f59d1c Mon Sep 17 00:00:00 2001 From: thosakwe Date: Fri, 23 Dec 2016 23:48:17 -0500 Subject: [PATCH] 14 --- lib/src/commands/key.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/commands/key.dart b/lib/src/commands/key.dart index 41524e8..b25f534 100644 --- a/lib/src/commands/key.dart +++ b/lib/src/commands/key.dart @@ -21,7 +21,7 @@ class KeyCommand extends Command { changeSecret(File file, String secret) async { if (await file.exists()) { bool foundSecret = false; - var sink = await file.openWrite(); + var sink = await file.openWrite(mode: FileMode.APPEND); await for (var chunk in await file.openRead().transform(UTF8.decoder)) { var lines = chunk.split('\n');