try deleting all non-package files

pull/164/head
Aaron Trudeau 2022-06-30 20:48:58 -04:00
parent 1f56db93bb
commit 9169a99f4e
No known key found for this signature in database
GPG Key ID: D6874B046ABF9536
1 changed files with 16 additions and 0 deletions

View File

@ -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 ""