#!/usr/bin/env bash

git pull origin master --tags

composer install --no-dev --optimize-autoloader

mkdir build

if [ ! -f box.phar ]; then
    wget https://github.com/box-project/box2/releases/download/2.6.0/box-2.6.0.phar -O box.phar
fi

php box.phar build

#!/usr/bin/env bash

git pull origin master --tags

composer install --no-dev --optimize-autoloader

mkdir -p build

if [ ! -f box.phar ]; then
    wget https://github.com/box-project/box2/releases/download/2.6.0/box-2.6.0.phar -O box.phar
fi

php box.phar build

Make sure that it doesn't give an error if the folder already exist
Make sure that it doesn't give an error if the folder already exist
