|
@@ -1,8 +1,18 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
+
|
|
|
|
+start=`date +%s`
|
|
|
|
+
|
|
chmod 0400 keys/*
|
|
chmod 0400 keys/*
|
|
eval $(ssh-agent)
|
|
eval $(ssh-agent)
|
|
ssh-add keys/bitbucket.id_rsa
|
|
ssh-add keys/bitbucket.id_rsa
|
|
-composer update --prefer-dist --no-plugins --no-autoloader --no-scripts --no-progress --no-suggest --with-dependencies --ignore-platform-reqs --prefer-lowest -n
|
|
|
|
|
|
+
|
|
|
|
+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
|
|
kill $SSH_AGENT_PID
|
|
-unset SSH_AGENT_PID
|
|
|
|
|
|
+unset SSH_AGENT_PID
|
|
|
|
+
|
|
|
|
+end=`date +%s`
|
|
|
|
+runtime=$((end-start))
|
|
|
|
+echo -e "\e[42mExecution time: $runtime s\e[0m"
|