14
This commit is contained in:
parent
d4d55d6a8f
commit
e98a94640a
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class KeyCommand extends Command {
|
||||||
changeSecret(File file, String secret) async {
|
changeSecret(File file, String secret) async {
|
||||||
if (await file.exists()) {
|
if (await file.exists()) {
|
||||||
bool foundSecret = false;
|
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)) {
|
await for (var chunk in await file.openRead().transform(UTF8.decoder)) {
|
||||||
var lines = chunk.split('\n');
|
var lines = chunk.split('\n');
|
||||||
|
|
Loading…
Reference in a new issue