]> piware.de Git - bin.git/commitdiff
build-devtoolbox: Install GitHub CLI
authorMartin Pitt <martin@piware.de>
Tue, 12 May 2020 18:06:17 +0000 (20:06 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 12 May 2020 18:06:17 +0000 (20:06 +0200)
build-devtoolbox

index 68a583483df4f00e1456c7d208e54339542ee068..386e0c56b576c6c6b99f3585ad6ae5329a96cfa0 100755 (executable)
@@ -44,6 +44,8 @@ sudo dnf install -y make npm fontconfig git valgrind chromium \
 
 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
 
+type gh >/dev/null 2>&1 || sudo dnf install -y $(curl -s https://api.github.com/repos/cli/cli/releases/latest | grep -o https:.*_linux_amd64.rpm)
+
 sudo dnf clean packages
 
 type aws >/dev/null 2>&1 || sudo pip install awscli