From 7976605290b6c59b56109cb17c95560b1b2f87c3 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Fri, 29 May 2020 09:28:06 +0300 Subject: [PATCH] Add git-ftp on Ubuntu image (#950) * Add git-ftp * Remove comment * Minor fix * Move installation to git.sh --- images/linux/scripts/installers/git.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/images/linux/scripts/installers/git.sh b/images/linux/scripts/installers/git.sh index 1d8e58a14..e2b27429a 100644 --- a/images/linux/scripts/installers/git.sh +++ b/images/linux/scripts/installers/git.sh @@ -17,6 +17,9 @@ git --version curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash apt-get install -y --no-install-recommends git-lfs +# Install git-ftp +apt-get install git-ftp -y + # Run tests to determine that the software installed as expected echo "Testing git installation" if ! command -v git; then @@ -28,6 +31,11 @@ if ! command -v git-lfs; then echo "git-lfs was not installed" exit 1 fi +echo "Testing git-ftp installation" +if ! command -v git-ftp; then + echo "git-ftp was not installed" + exit 1 +fi # Document what was added to the image echo "Lastly, document the installed versions" @@ -35,6 +43,7 @@ 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))" +DocumentInstalledItem "Git-ftp ($(git-ftp --version | cut -d ' ' -f 3))" #Install hub snap install hub --classic