#!/bin/bash cd plugins_src for i in `ls`; do echo "Building plugin: $i" go build -buildmode=plugin $i if [ $? -eq 0 ]; then mv *.so ../cmd/plugins fi done cd ..