robotpy / pyfrc

python3 library designed to make developing RobotPy-based code easier!
MIT License
51 stars 35 forks source link

Deploy fails if /home/lvuser/py_new already exists #127

Closed virtuald closed 6 years ago

virtuald commented 6 years ago

Solution is to SSH in and delete the directory, but we should handle this case.

auscompgeek commented 6 years ago

Whoops, figures that I forgot to handle that.

Luckily rm -f returns 0 if the file doesn't exist anyway, so just unconditionally deleting it before copying everything over should do the trick.