CBDD / openduck

Open-source DUck (Dynamic Undocking)
http://www.ub.edu/bl/undocking/
Apache License 2.0
6 stars 3 forks source link

Bugfix: check if LIG_TARGET var is set before copying working dir there #20

Closed simonbray closed 9 months ago

simonbray commented 9 months ago

If the environment variable $LIG_TARGET isn't set openduck tries to copy everything to / and then you get errors like

cp: cannot create regular file '/1_min.in': Permission denied
cp: cannot create regular file '/2_heating150.in': Permission denied
cp: cannot create regular file '/2_heating150.out': Permission denied
...

The change here only tries to copy files after checking $LIG_TARGET is set.