diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 5495e79..d5516c6 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -58,10 +58,34 @@ for dir in bin lib python tools config; do exit 1 fi done -cp -r "${PROJECT_ROOT}/bin/"* "/usr/local/bin/" -cp -r "${PROJECT_ROOT}/lib/"* "/usr/lib64/" -cp -r "${PROJECT_ROOT}/python/"* "/tmp/" -cp -r "${PROJECT_ROOT}/tools/"* "$WORK_DIR/tools/" + +# Copy executable +log_info "Copying executable..." +if ! cp -v "${PROJECT_ROOT}/bin/"* "/usr/local/bin/"; then + log_error "Failed to copy executable" + exit 1 +fi + +# Copy libraries +log_info "Copying libraries..." +if ! cp -v "${PROJECT_ROOT}/lib/"* "/usr/lib64/"; then + log_error "Failed to copy libraries" + exit 1 +fi + +# Copy Python packages +log_info "Copying Python packages..." +if ! cp -v "${PROJECT_ROOT}/python/"* "/tmp/"; then + log_error "Failed to copy Python packages" + exit 1 +fi + +# Copy tools +log_info "Copying tools..." +if ! cp -v "${PROJECT_ROOT}/tools/"* "$WORK_DIR/tools/"; then + log_error "Failed to copy tools" + exit 1 +fi # Create config directory CONFIG_DIR="/etc/collision_avoidance"