Git-for-Unity/clean.sh

9 строки
313 B
Bash

#!/bin/bash -eu
{ set +x; } 2>/dev/null
SOURCE="${BASH_SOURCE[0]}"
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
pushd $DIR >/dev/null 2>&1
rm -rf build
git clean -xdf -e lib -e packages -e .Editor -e .vs -e .store -e setenv.sh -e upm-ci~/test-results -e .bin -e .download
popd >/dev/null 2>&1