From 39e611622682a76f294d334bd53fd9294f71fdee Mon Sep 17 00:00:00 2001 From: Morgan <2504532+mrgnw@users.noreply.github.com> Date: Fri, 27 Sep 2024 04:31:38 +0200 Subject: [PATCH] +jxl. leave $PWD out of sips terminal output --- heics | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heics b/heics index fff58a3..e43e9ee 100755 --- a/heics +++ b/heics @@ -3,9 +3,9 @@ mkdir -p heics mkdir -p original setopt localoptions nocaseglob -for file in *.{jpeg,jpg,png,arw,dng,psd}(N); do +for file in *.{jpeg,jpg,png,arw,dng,psd,jxl}(N); do if [[ -f $file ]]; then - sips -s format heic "$file" --out "heics/${file:r}.heic" + sips -s format heic "$file" --out "${file:r}.heic" 2>&1 | sed "s|$PWD/||g" mv "$file" "original/$file" fi done \ No newline at end of file -- knotmirror 0.0.1