mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Add Hub installation (#529)
* Hub installation has been added * Checking and documentation updating has been created * Canges in hub version detection code * GIT_LFS_PATH has been removed from hub version detection * Copy-Past has been returned * Refactoring for separate command checking
This commit is contained in:
@@ -35,3 +35,13 @@ echo "Lastly, document the installed versions"
|
||||
DocumentInstalledItem "Git ($(git --version 2>&1 | cut -d ' ' -f 3))"
|
||||
# git-lfs/2.6.1 (GitHub; linux amd64; go 1.11.1)
|
||||
DocumentInstalledItem "Git Large File Storage (LFS) ($(git-lfs --version 2>&1 | cut -d ' ' -f 1 | cut -d '/' -f 2))"
|
||||
|
||||
#Install hub
|
||||
snap install hub --classic
|
||||
if command -v hub; then
|
||||
echo "hub CLI was installed successfully"
|
||||
DocumentInstalledItem "Hub CLI ($(hub --version | grep "hub version" | cut -d ' ' -f 3))"
|
||||
else
|
||||
echo "[!] Hub CLI was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user