Skip to content

Commit

Permalink
fix: install by sudo get-apt on Ubuntu (#336)
Browse files Browse the repository at this point in the history
* fix: use sudo
  • Loading branch information
kamiazya authored Aug 17, 2022
1 parent d2aa9ba commit 614ea5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-graphviz",
"version": "1.0.2-0",
"version": "1.0.3-1",
"author": "kamiazya <yuki@kamiazya.tech>",
"description": "Setup a graphviz environment.",
"private": true,
Expand Down
5 changes: 3 additions & 2 deletions src/GraphvizInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ export class GraphvizInstaller {
}

private async getAptInstall() {
await exec('apt-get', ['update']);
await exec('apt-get', [
await exec('sudo', ['apt-get', 'update']);
await exec('sudo', [
'apt-get',
'install',
'graphviz',
// https://github.com/pygraphviz/pygraphviz/issues/163#issuecomment-570770201
Expand Down

0 comments on commit 614ea5d

Please sign in to comment.