[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
0

Configure Feed

Select the types of activity you want to include in your feed.

keep timestamps

+11 -3
+11 -3
heics
··· 12 12 $(printf -- "-iname %s -o " "${extensions[@]}") \ 13 13 -false \) -print0 | \ 14 14 parallel -0 -j "$(sysctl -n hw.ncpu)" ' 15 - heic {} 16 - mv {} original/{} 17 - ' 15 + original_file={} 16 + heic_file="${original_file%.*}.heic" 17 + heic "$original_file" 18 + 19 + # Preserve the original file dates on the new HEIC file 20 + if [[ -f "$heic_file" ]]; then 21 + touch -r "$original_file" "$heic_file" 22 + fi 23 + 24 + mv "$original_file" original/ 25 + '