diff options
Diffstat (limited to 'src/poi-service/rebuild_all.sh')
-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 |