https://github.com/micheltlutz/remove-ds-store
This script searches for and removes all .DS_Store files in the specified path
https://github.com/micheltlutz/remove-ds-store
Last synced: about 1 month ago
JSON representation
This script searches for and removes all .DS_Store files in the specified path
- Host: GitHub
- URL: https://github.com/micheltlutz/remove-ds-store
- Owner: micheltlutz
- License: mit
- Created: 2024-01-24T11:30:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-26T03:05:34.000Z (about 1 year ago)
- Last Synced: 2025-01-26T07:43:06.389Z (3 months ago)
- Language: Shell
- Homepage: https://micheltlutz.me
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RemoveDSStore
> Ever had that problem of forgetting to add .DS_Store to your .gitignore and having to remove it manually? This script solves that for you.
- After cloning the repository, make the script executable, if you haven't done so already:
```bash
chmod +x remove_ds_store.sh
```### Use the script by passing the desired path as an argument. For example:
```bash
./remove_ds_store.sh /path/to/your/folder
```The script first checks if you have provided exactly one argument (the folder path). If none or more than one argument is provided, it displays a usage message and exits. Then, it verifies if the provided argument is indeed a directory before proceeding to remove the `.DS_Store` files.
If everything is correct, it executes the search and removes the `.DS_Store` files in the provided directory.