Is this out for review? If so, I'd add an if statement around here to make sure we're running on linux, or at least on drone.io:

    if [ "$DRONE" = "true" ]; then