Clonar um Repositório
$ git clone 'nome-do-repositório'
Verificar status
$ git status
| #!/bin/sh | |
| ls Postman*.tar.gz > /dev/null 2>&1 | |
| if [ $? -eq 0 ]; then | |
| echo "Removing old Postman tarballs" | |
| rm -f $(ls Postman*.tar.gz) | |
| fi | |
| echo "Downloading latest Postman tarball" | |
| curlExists=$(command -v curl) |
| # Installation --- | |
| # 1. In Bitbucket, add $FTP_USERNAME $FTP_PASSWORD and $FTP_HOST as environment variables. | |
| # 2. Commit this file to your repo | |
| # 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will | |
| # push everything and initial GitFTP) | |
| # | |
| # Usage --- | |
| # - On each commit to master branch, it'll push all files to the $FTP_HOST | |
| # - You also have the option to 'init' (from Bitbucket Cloud) - pushes everything and initialises | |
| # - Finally you can also 'deploy-all' (from Bitbucket Cloud) - if multiple deploys fail, you |
Maybe you need the possibility to create excel files and automaticly download it.
To be able to create Excel docs I'm using PHPExcel. Here is a tiny example how to create and download the created file directly from your server.
| # Original : Michalis Georgiou | |
| # Modified : D4zzy for Fedora | |
| _wgeturl="https://github.com/google/fonts/archive/master.tar.gz" | |
| _gf="google-fonts" | |
| # install wget | |
| echo "Installing wget..." | |
| sudo dnf install wget |