run reflector before calling the backend, fix #16

pull/2/head
axtlos 3 years ago
parent a353275efe
commit 3ad354f25c
No known key found for this signature in database
GPG Key ID: A468AFD71DD51D4A

@ -11,7 +11,7 @@ test(setOutput, running, setRunning, config, writeToLog) async {
await File(filename).writeAsString(config);
writeToLog("Json config: $config");
var process =
await Process.start('pkexec', ['jade', 'config', '/tmp/jade.json']);
await Process.start('pkexec', ['/opt/jade_gui/scripts/jadewrapper.sh']);
//await Process.start('/opt/jade_gui/scripts/jadeemu.sh', []);
process.stdout.transform(utf8.decoder).forEach(setOutput);
setRunning(true);

@ -0,0 +1,3 @@
#!/usr/bin/env bash
reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
jade config /tmp/jade.json
Loading…
Cancel
Save