forked from vv01f/ccc-map
fix file exists
This commit is contained in:
parent
7cf298d9a1
commit
90ca41549f
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue