[PATCH v4 06/12] ci: run gem with sudo to install asciidoctor
- From
Đoàn Trần Công Danh <congdanhqx@gmail.com>
- Date
- Apr 8, 2020, 04:05 UTC
- Message-ID
- <795ec656c6172b139a5a55f1760e0ecfe434b5f3.1586309211.git.congdanhqx@gmail.com>
- In-Reply-To
- <cover.1586309211.git.congdanhqx@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
In a later patch, we will run Documentation job in GitHub Actions. The job will run without elevated permission.
Run `gem` with `sudo` to elevate permission in order to be able to install to system location. This will also keep this installation in-line with other installation in our Linux system for CI.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> [Danh: reword commit message] Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> --- ci/install-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh index 371902bb75..a6a1dafa15 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -72,7 +72,7 @@ Documentation) libcurl4-openssl-dev test -n "$ALREADY_HAVE_ASCIIDOCTOR" || - gem install --version 1.5.8 asciidoctor + sudo gem install --version 1.5.8 asciidoctor ;; GETTEXT_POISON) sudo apt-get -q update
-- 2.26.0.334.g6536db25bb