From: Đoàn Trần Công Danh Date: Fri, 10 Apr 2020 17:18:08 GMT Subject: [PATCH v5 06/12] ci: run gem with sudo to install asciidoctor Message-ID: <2fb9f2e2f285a2df40ddab3f954b661fcd5da588.1586538752.git.congdanhqx@gmail.com> In-Reply-To: From: Johannes Schindelin 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 [Danh: reword commit message] Signed-off-by: Đoàn Trần Công Danh --- 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 3633a60a1c..0229a77f7d 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -70,7 +70,7 @@ Documentation) sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make test -n "$ALREADY_HAVE_ASCIIDOCTOR" || - gem install --version 1.5.8 asciidoctor + sudo gem install --version 1.5.8 asciidoctor ;; linux-gcc-4.8|GETTEXT_POISON) sudo apt-get -q update -- 2.26.0.334.g6536db25bb