5
0
Fork 0

String appending

This commit is contained in:
haasmi 2023-06-07 10:21:54 +02:00
parent 17dd1f1c85
commit ecfb6f48e8

13
pandocPipeline/pandocPipeline.sh Normal file → Executable file
View file

@ -15,8 +15,8 @@ echo Usage: pandocPipeline [OPTION] [COMMAND]
echo -h, --help show this help screen echo -h, --help show this help screen
echo -f, --file specify filename without extension echo -f, --file specify filename without extension
echo -e, --ending spefify target file format echo -e, --ending spefify target file format
echo -u, --user=$USER enter name of file editor set between "" (only for target format pdf) echo -u, --user=editor enter name of file editor set between "" \(only for target format pdf\)
echo -t, --title enter title of document set between "" (only for target format pdf) echo -t, --title enter title of document set between "" \(only for target format pdf\)
echo Pipeline is optimized for target format pdf and docx but works with others as well echo Pipeline is optimized for target format pdf and docx but works with others as well
echo Possible fileformats see: https://pandoc.org/diagram.svgz?v=20230203095535 echo Possible fileformats see: https://pandoc.org/diagram.svgz?v=20230203095535
echo Examples: echo Examples:
@ -64,10 +64,13 @@ while true; do
esac esac
done done
echo $script
scriptpath=$script
echo $scriptpath
scriptpath+=/header.txt
echo $scriptpath
if [[ -z "$file" ]]; then if [[ -z "$file" ]]; then
Errorfile Errorfile
exit exit
fi fi
if [[ "$ending" == "pdf" ]]
header=