From 01807e961e6f35a2d6e1b089b4f863c55474d538 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 3 Nov 2024 09:39:26 +0000 Subject: [PATCH] fix: fix aax{c} detection --- justfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index aed0051..49d3e87 100644 --- a/justfile +++ b/justfile @@ -39,7 +39,7 @@ _require_dir *dirs: mkdir {{ dirs }} 2>/dev/null || true _move target *files: - mv {{ files }} {{ target }}/ 2>/dev/null || true + mv {{ files }} {{ target }} 2>/dev/null || true _download-asin *asins: just _require_dir TEMP @@ -56,7 +56,7 @@ convert: convert-aax convert-aaxc convert-aax: #!/usr/bin/env bash just _require_dir M4B - if [ $(fd --glob 'AAX/*.aax' | wc -l) -gt 0 ] + if [ $(fd . AAX | wc -l) -gt 0 ] then for F in AAX/*.aax do @@ -69,12 +69,14 @@ convert-aax: $O rm $F done + else + echo No AAX to convert fi convert-aaxc: #!/usr/bin/env bash just _require_dir M4B - if [ $(fd --glob 'AAXC/*.aaxc' | wc -l) -gt 0 ] + if [ $(fd . AAXC | wc -l) -gt 0 ] then for AAXC in AAXC/*.aaxc do @@ -82,6 +84,8 @@ convert-aaxc: M4B="M4B/$(basename ${AAXC%.aaxc}).m4b" just _convert-one-aaxc $AAXC $VOUCHER $M4B done + else + echo No AAXC to convert fi _convert-one-aaxc aaxc_file voucher_file m4b_file: