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: