diff options
| author | Schark <jordan@schark.online> | 2026-01-30 16:57:53 -0500 |
|---|---|---|
| committer | Schark <jordan@schark.online> | 2026-01-30 16:57:53 -0500 |
| commit | 60d3558928e3250fb4e13da90bbdff0d817fd6bd (patch) | |
| tree | f2f102202ec515fb1f1b1a489f61d65a870f7753 /scripts | |
| parent | 2e54feadfe8b333794ea8286262c0c038a2818be (diff) | |
| download | cs2pov-60d3558928e3250fb4e13da90bbdff0d817fd6bd.tar.gz cs2pov-60d3558928e3250fb4e13da90bbdff0d817fd6bd.zip | |
FFmpeg fixes, updated automation, cleanup script
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/cleanup.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh new file mode 100755 index 0000000..9af9610 --- /dev/null +++ b/scripts/cleanup.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Cleanup script - removes generated log and video files from project directory + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +PROJECT_DIR="$(dirname "$SCRIPT_DIR")" + +echo "Cleaning up files in: $PROJECT_DIR" + +# Delete all .log files +find "$PROJECT_DIR" -maxdepth 1 -name "*.log" -type f -delete -print 2>/dev/null | while read f; do + echo " Deleted: $(basename "$f")" +done + +# Delete all .mp4 files +find "$PROJECT_DIR" -maxdepth 1 -name "*.mp4" -type f -delete -print 2>/dev/null | while read f; do + echo " Deleted: $(basename "$f")" +done + +echo "Cleanup complete" |
