123456789101112131415161718 |
- #!/bin/bash
- start=`date +%s`
- chmod 0400 keys/*
- eval $(ssh-agent)
- ssh-add keys/bitbucket.id_rsa
- command="composer install --no-progress -n $@"
- echo -e "Command: \e[42m$command\e[0m"
- $command
- kill $SSH_AGENT_PID
- unset SSH_AGENT_PID
- end=`date +%s`
- runtime=$((end-start))
- echo -e "\e[42mExecution time: $runtime s\e[0m"
|