Debian Codegraph @

.github/fetch-scripts.sh

raw symbols SCIP
1 #!/bin/sh
2
3 #
4 # DO NOT EDIT THIS FILE
5 #
6 # It is automatically copied from https://github.com/pion/.goassets repository.
7 #
8 # If you want to update the shared CI config, send a PR to
9 # https://github.com/pion/.goassets instead of this repository.
10 #
11
12 set -eu
13
14 SCRIPT_PATH="$(realpath "$(dirname "$0")")"
15 GOASSETS_PATH="${SCRIPT_PATH}/.goassets"
16
17 GOASSETS_REF=${GOASSETS_REF:-master}
18
19 if [ -d "${GOASSETS_PATH}" ]; then
20 if ! git -C "${GOASSETS_PATH}" diff --exit-code; then
21 echo "${GOASSETS_PATH} has uncommitted changes" >&2
22 exit 1
23 fi
24 git -C "${GOASSETS_PATH}" fetch origin
25 git -C "${GOASSETS_PATH}" checkout ${GOASSETS_REF}
26 git -C "${GOASSETS_PATH}" reset --hard origin/${GOASSETS_REF}
27 else
28 git clone -b ${GOASSETS_REF} https://github.com/pion/.goassets.git "${GOASSETS_PATH}"
29 fi