From 9169a99f4e8a68e437816afdfd1e4de232006add Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Thu, 30 Jun 2022 20:48:58 -0400 Subject: [PATCH] try deleting all non-package files --- dist/steps/run_tests.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dist/steps/run_tests.sh b/dist/steps/run_tests.sh index 862ee9f..70d31ed 100755 --- a/dist/steps/run_tests.sh +++ b/dist/steps/run_tests.sh @@ -49,6 +49,22 @@ if [ "$PACKAGE_MODE" = "true" ]; then echo "###########################" echo "" + # remove .git folder, .github folder, and _activate-license file if they exist + if [ -d "$UNITY_PROJECT_PATH/.git" ]; then + echo "Removing .git folder." + rm -rf "$UNITY_PROJECT_PATH/.git" + fi + + if [ -d "$UNITY_PROJECT_PATH/.github" ]; then + echo "Removing .github folder." + rm -rf "$UNITY_PROJECT_PATH/.github" + fi + + if [ -f "$UNITY_PROJECT_PATH/_activate-license" ]; then + echo "Removing _activate-license file." + rm -f "$UNITY_PROJECT_PATH/_activate-license" + fi + ls -a "$UNITY_PROJECT_PATH" echo ""