fix file exists

This commit is contained in:
vv01f 2020-04-13 12:36:13 +02:00
parent 7cf298d9a1
commit 90ca41549f
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
#!/usr/bin/env sh
if="../hackergeno/non-public/eV/members.fods"
if="../non-public/eV/members.fods"
ofn=$(echo $if|rev|cut -d"/" -f1|cut -d"." -f2-|rev)
fae="file already exists."
# recv data
if test -e $of ; then
if test -e $ofn".csv" ; then
echo "$fae"
else
libreoffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":"59,,76,3,1/1/2/2/2" $if || { echo "errors during export to csv"; exit 3; }