<commit_before>#!/bin/bash -
## NOTES ##
# https://github.com/ResponSySS/responsyss.github.io/wiki/make_pdf.sh
SEARCH_PATH="textes/" 
CMD_PDF=(./pdc_gen.sh -i md -o pdf -j 1 -p -a '--template=./template.pdf.pandoc')
CMD_EPUB=(./pdc_gen.sh -i md -o epub -j 2) # add EPUB template arg

case "$1" in 	"help"|"usage"|"-h"|"--help")
			{ echo -e "[$0] Usage: $0 [SEARCH_PATH]\n  SEARCH_PATH defaults to: \"${SEARCH_PATH}\" (see ${CMD_PDF[0]} --help)\n[$0] Command to be executed:\n  (for PDF)\t ${CMD_PDF[@]} [SEARCH_PATH]\n  (for EPUB)\t ${CMD_EPUB[@]} [SEARCH_PATH]"; exit; } ;;
		*)
			SEARCH_PATH="$1" ;;
esac

${CMD_PDF[@]} 	${SEARCH_PATH}
${CMD_EPUB[@]} 	${SEARCH_PATH}<commit_msg>Bugfix pour SEARCH_PATH<commit_after>#!/bin/bash -
## NOTES ##
# https://github.com/ResponSySS/responsyss.github.io/wiki/make_pdf.sh
SEARCH_PATH="textes/" 
CMD_PDF=(./pdc_gen.sh -i md -o pdf -j 1 -p -a '--template=./template.pdf.pandoc')
CMD_EPUB=(./pdc_gen.sh -i md -o epub -j 2) # add EPUB template arg

[[ $1 ]] && {
	case "$1" in 	"help"|"usage"|"-h"|"--help")
					{ echo -e "[$0] Usage: $0 [SEARCH_PATH]\n  SEARCH_PATH defaults to: \"${SEARCH_PATH}\" (see ${CMD_PDF[0]} --help)\n[$0] Command to be executed:\n  (for PDF)\t ${CMD_PDF[@]} [SEARCH_PATH]\n  (for EPUB)\t ${CMD_EPUB[@]} [SEARCH_PATH]"; exit; } ;;
				*)
					SEARCH_PATH="$1" ;;
	esac
}

${CMD_PDF[@]} 	${SEARCH_PATH}
${CMD_EPUB[@]} 	${SEARCH_PATH}
{'fraction_non_alphanumeric': 0.24248927038626608, 'fraction_numerical': 0.012160228898426323, 'mean_word_length': 3.8745644599303137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4761782', 'n_tokens_mistral': 654, 'n_tokens_neox': 619, 'n_words': 124}