]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci: run gem with sudo to install asciidoctor
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 10 Apr 2020 17:18:08 +0000 (00:18 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Apr 2020 17:30:40 +0000 (10:30 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/install-dependencies.sh

index 3633a60a1ce8411dd5e98e2bb95c75c04acd6f32..0229a77f7d281fa9717e359f34c634f118035a62 100755 (executable)
@@ -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