diff --git a/compress-music.sh b/compress-music.sh index 4dfa546..a2811fd 100755 --- a/compress-music.sh +++ b/compress-music.sh @@ -14,7 +14,7 @@ cd "$source" find . -type d -exec mkdir -p "$destination/{}" \; # 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. # compress with mp3