Better file name management
This commit is contained in:
parent
96126d9c99
commit
ffb97010c9
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# @copyright GPL License 2010 - Vikas Mahajan - http://vikasmahajan.wordpress.com
|
# @copyright GPL License 2010 - Vikas Mahajan - http://vikasmahajan.wordpress.com
|
||||||
|
|
||||||
if [ -f $1 ]
|
if [ -f "$1.odt" ]
|
||||||
then
|
then
|
||||||
pgrep -U `id -u` soffice
|
pgrep -U `id -u` soffice
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
@ -9,7 +9,7 @@ then
|
|||||||
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
|
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
jodconverter $1 "$1.pdf"
|
jodconverter "$1.odt" "$1.pdf"
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "Error while converting odt to pdf"
|
echo "Error while converting odt to pdf"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user