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 os
|
||||||
import time
|
import time
|
||||||
from fileinput import filename
|
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',
|
bad_phrases = [' Free',
|
||||||
'-medium',
|
'-medium',
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
import cleanup
|
import cleanup
|
||||||
|
import os
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
## Clean up git repository
|
# Clean up git repository
|
||||||
#Reset and remove untracked files
|
os.system(f"cd {cleanup.repo_location}") # Pull the latest changes from the remote repository
|
||||||
os.system("git reset --hard")
|
os.system("git reset --hard main") # Reset the repository to the 'main' branch, discarding all local changes
|
||||||
os.system("git clean -fdx")
|
os.system("git clean -fdx") # Remove all untracked files and directories, including ignored files
|
||||||
cleanup.remove_ds_store_files()
|
cleanup.remove_ds_store_files() # Remove .DS_Store files from the repository
|
||||||
cleanup.remove_setup_complete_files()
|
cleanup.remove_setup_complete_files() # Remove setup complete files from the repository
|
||||||
cleanup.remove_empty_folders()
|
cleanup.remove_empty_folders() # Remove empty folders from the repository
|
||||||
Loading…
Add table
Add a link
Reference in a new issue