envire / envire-envire_core

Core part for the Environment Representation library
BSD 2-Clause "Simplified" License
7 stars 13 forks source link

install_dependencies.sh fails not being able to recreate its source directories #49

Closed pierrewillenbrockdfki closed 5 years ago

pierrewillenbrockdfki commented 5 years ago

Steps to reproduce:

actual error: fatal: Zielpfad 'base-cmake' existiert bereits und ist kein leeres Verzeichnis. which translates to fatal: destination path 'base-cmake' already exists and is not an empty directory.

suggested changes: detect the situation and rm -rf the offending directories then git clone or use git pull instead.

arneboe commented 5 years ago

Implemented a solution. My bash isn't that great, could you review it? https://github.com/envire/envire-envire_core/commit/9c8a6a610e5e7c12bb43cb662db064d4037e5867

pierrewillenbrockdfki commented 5 years ago

Looks reasonable, seems to work. Only nitpick here are the unquoted variables, which will cause breakage once there are space characters in them. But that would have to go into another issue, the whole script seems to suffer from that.