Welcome to mirror list, hosted at ThFree Co, Russian Federation.

validate-formatting.sh « _support - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 38f546617b5827c4534c36d1dfa63fe0e393a28d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -eu

IMPORT_RESULT=$(./bin/goimports -e -local "gitlab.com/gitlab-org/gitlab-pages" -l "$@")

if [ -n "${IMPORT_RESULT}" ]; then
  echo >&2 "Please run ./bin/goimports -w -local gitlab.com/gitlab-org/gitlab-pages -l $@"
  echo "${IMPORT_RESULT}"
  exit 1
fi