#!/bin/bash start=`date +%s` chmod 0400 keys/* eval $(ssh-agent) ssh-add keys/bitbucket.id_rsa command="composer update --prefer-dist --no-plugins --no-autoloader --no-scripts --no-progress --no-suggest --with-dependencies --ignore-platform-reqs --prefer-lowest -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"