mirror of
https://github.com/aljazceru/vibeline.git
synced 2026-01-13 11:34:37 +01:00
- Add --force/-f flag to control file overwriting in extract.py - Propagate force flag through all scripts (extract.sh, process.sh, run.sh, watch_voice_memos.py) - Add TODO item for future CLI modernization using Python - Skip existing output files unless force flag is used
24 lines
503 B
Bash
Executable File
24 lines
503 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Parse arguments
|
|
force_flag=""
|
|
while getopts "f" opt; do
|
|
case $opt in
|
|
f) force_flag="-f" ;;
|
|
esac
|
|
done
|
|
shift $((OPTIND-1))
|
|
|
|
# Activate virtual environment
|
|
source vibenv/bin/activate
|
|
|
|
echo "Processing all voice memos..."
|
|
for file in VoiceMemos/*.m4a; do
|
|
if [ -f "$file" ]; then
|
|
echo "Processing: $file"
|
|
./process.sh $force_flag "$file"
|
|
echo "----------------------------------------"
|
|
fi
|
|
done
|
|
|
|
echo "Done! All voice memos have been processed." |