Skip to content

Commit 0571349

Browse files
author
Igor Melnikov
committed
Remove GitHub token requirement
Check if auth.json exists before copying
1 parent c3cdea3 commit 0571349

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/provision/configure_environment.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ if [ -f ${composer_auth_json} ]; then
6565
if [ ! -d /home/vagrant/.composer ] ; then
6666
sudo -H -u vagrant bash -c 'mkdir /home/vagrant/.composer'
6767
fi
68-
cp ${composer_auth_json} /home/vagrant/.composer/auth.json
68+
if [ -f ${composer_auth_json} ]; then
69+
cp ${composer_auth_json} /home/vagrant/.composer/auth.json
70+
fi
6971
fi
7072

7173
# Declare path to scripts supplied with vagrant and Magento

0 commit comments

Comments
 (0)