Install vim dependencies in background
This commit is contained in:
parent
16223fa668
commit
a11d570ae9
|
@ -104,13 +104,18 @@ sub main {
|
||||||
|
|
||||||
if ($command eq "setup") {
|
if ($command eq "setup") {
|
||||||
setup();
|
setup();
|
||||||
system("dfm vim >/dev/null 2>&1 &");
|
if (fork() == 0) {
|
||||||
|
system("dfm vim >/dev/null 2>&1");
|
||||||
|
print "[`dfm vim` finished]\n";
|
||||||
|
}
|
||||||
} elsif ($command eq "vim") {
|
} elsif ($command eq "vim") {
|
||||||
vim();
|
vim();
|
||||||
} elsif ($command eq "check-update") {
|
} elsif ($command eq "check-update") {
|
||||||
checkUpdate();
|
checkUpdate();
|
||||||
} elsif ($command eq "update") {
|
} elsif ($command eq "update") {
|
||||||
update();
|
update();
|
||||||
|
} else {
|
||||||
|
die "Invalid command. See `dfm --help`.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user