Add move-firefox-screenshots script

This commit is contained in:
Oliver Davies 2024-06-12 09:00:00 +01:00
parent 68813f3af7
commit a7a979e17e
2 changed files with 17 additions and 0 deletions

View file

@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), but adapt
Instead of grouping changes by tag, they are grouped by the date they are released. Instead of grouping changes by tag, they are grouped by the date they are released.
## 12th June 2024
### Added
- Add `move-firefox-screenshots` - a script to move screenshots created in Firefox from my Downloads directory into my screenshots directory as there isn't a Firefox setting for this.
## 11th June 2024 ## 11th June 2024
### Changed ### Changed

11
bin/move-firefox-screenshots Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
original_directory="${HOME}/Downloads"
new_directory="${HOME}/Pictures/Screenshots"
find "${original_directory}" -mindepth 1 -maxdepth 1 -type f -name "Screenshot *" \
-exec mv {} "${new_directory}" \;