...

Text file src/github.com/docker/distribution/script/validate/vendor

Documentation: github.com/docker/distribution/script/validate

     1#!/usr/bin/env bash
     2
     3set -eu -o pipefail
     4
     5rm -rf vendor/
     6vndr |& grep -v -i clone
     7
     8DIFF_PATH="vendor/"
     9DIFF=$(git status --porcelain -- "$DIFF_PATH")
    10
    11if [ "$DIFF" ]; then
    12    echo
    13    echo "These files were modified:"
    14    echo
    15    echo "$DIFF"
    16    echo
    17    exit 1
    18else
    19    echo "$DIFF_PATH is correct"
    20fi

View as plain text