summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/librdkafka-2.1.0/packaging/nuget/nuget.sh
blob: 032371231beecad6f56e8ba8897f2b66fd06a14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
#
# Front-end for nuget that runs nuget in a docker image.

set -ex

if [[ -f /.dockerenv ]]; then
    echo "Inside docker"

    pushd $(dirname $0)

    nuget $*

    popd

else
    echo "Running docker image"
    docker run -v $(pwd):/io mono:latest /io/$0 $*
fi