2
0
forked from Wavyzz/dolibarr

Better file name management

This commit is contained in:
fhenry
2013-04-20 11:03:23 +02:00
parent 96126d9c99
commit ffb97010c9
2 changed files with 497 additions and 492 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# @copyright GPL License 2010 - Vikas Mahajan - http://vikasmahajan.wordpress.com
if [ -f $1 ]
if [ -f "$1.odt" ]
then
pgrep -U `id -u` soffice
if [ $? -ne 0 ]
@@ -9,7 +9,7 @@ then
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
sleep 2
fi
jodconverter $1 "$1.pdf"
jodconverter "$1.odt" "$1.pdf"
if [ $? -ne 0 ]
then
echo "Error while converting odt to pdf"