From 01a368a7e60d84105803850e2853492b6dd47d74 Mon Sep 17 00:00:00 2001 From: lub Date: Mon, 14 Jan 2019 14:08:24 +0100 Subject: [PATCH] compress-music.sh: add -a switch to cp --- compress-music.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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