diff options
author | philippe colliot <fifitaneki@hotmail.com> | 2016-02-10 15:09:37 +0100 |
---|---|---|
committer | philippe colliot <fifitaneki@hotmail.com> | 2016-02-10 15:09:37 +0100 |
commit | 777e81fc45a834d3b0c07af66486ad70d815f7b6 (patch) | |
tree | f6f7f8859e5212b93ff02612cb4f11be5044b395 /src/poi-service | |
parent | 578deac8bdc971b514aa3557782514fb6f10cc39 (diff) | |
download | poi-service-777e81fc45a834d3b0c07af66486ad70d815f7b6.tar.gz |
fix bug in rebuild_all scripts
Diffstat (limited to 'src/poi-service')
-rwxr-xr-x | src/poi-service/rebuild_all.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/poi-service/rebuild_all.sh b/src/poi-service/rebuild_all.sh index 1d19abb..688f9af 100755 --- a/src/poi-service/rebuild_all.sh +++ b/src/poi-service/rebuild_all.sh @@ -25,7 +25,7 @@ do done set -e -if [ $franca="ON" ] +if [ "$franca" = "ON" ] then if [ ! $COMMONAPI_TOOL_DIR ] then @@ -52,7 +52,10 @@ then fi echo 'clean up the build folder' -find ./build ! -name '*.cbp' -type f -exec rm -f {} + +if [ -d "./build" ] +then + find ./build ! -name '*.cbp' -type f -exec rm -f {} + +fi mkdir -p build cd build |