compress-music.sh: add -a switch to cp

master
lub 6 years ago
parent aad07a84aa
commit 01a368a7e6

@ -14,7 +14,7 @@ cd "$source"
find . -type d -exec mkdir -p "$destination/{}" \; find . -type d -exec mkdir -p "$destination/{}" \;
# copy existing files # copy existing files
find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.m4a' -or -name '*.opus' \) -exec cp --reflink=always "{}" "$destination/{}" \; find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.m4a' -or -name '*.opus' \) -exec cp -a --reflink=always "{}" "$destination/{}" \;
# set +e because ffmpeg errors on .jpg, .txt, etc. # set +e because ffmpeg errors on .jpg, .txt, etc.
# compress with mp3 # compress with mp3

Loading…
Cancel
Save