additional cleanup
This commit is contained in:
parent
689ed19245
commit
a12912b3bf
2 changed files with 10 additions and 8 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import os
|
||||
import time
|
||||
from fileinput import filename
|
||||
repo_location = '/Users/fishy/custom_fonts'
|
||||
|
||||
font_location = '/Users/fishy/custom_fonts/font_files'
|
||||
font_location = f'{repo_location}/font_files'
|
||||
|
||||
bad_phrases = [' Free',
|
||||
'-medium',
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
import cleanup
|
||||
import os
|
||||
|
||||
if __name__ == '__main__':
|
||||
## Clean up git repository
|
||||
#Reset and remove untracked files
|
||||
os.system("git reset --hard")
|
||||
os.system("git clean -fdx")
|
||||
cleanup.remove_ds_store_files()
|
||||
cleanup.remove_setup_complete_files()
|
||||
cleanup.remove_empty_folders()
|
||||
# Clean up git repository
|
||||
os.system(f"cd {cleanup.repo_location}") # Pull the latest changes from the remote repository
|
||||
os.system("git reset --hard main") # Reset the repository to the 'main' branch, discarding all local changes
|
||||
os.system("git clean -fdx") # Remove all untracked files and directories, including ignored files
|
||||
cleanup.remove_ds_store_files() # Remove .DS_Store files from the repository
|
||||
cleanup.remove_setup_complete_files() # Remove setup complete files from the repository
|
||||
cleanup.remove_empty_folders() # Remove empty folders from the repository
|
||||
Loading…
Add table
Add a link
Reference in a new issue