mirror of
https://github.com/h3xduck/TripleCross.git
synced 2026-01-08 17:13:09 +08:00
Setup development environment with libbpf
This commit is contained in:
26
external/libbpf-bootstrap/libbpf/travis-ci/vmtest/helpers.sh
vendored
Normal file
26
external/libbpf-bootstrap/libbpf/travis-ci/vmtest/helpers.sh
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# $1 - start or end
|
||||
# $2 - fold identifier, no spaces
|
||||
# $3 - fold section description
|
||||
travis_fold() {
|
||||
local YELLOW='\033[1;33m'
|
||||
local NOCOLOR='\033[0m'
|
||||
if [ -z ${GITHUB_WORKFLOW+x} ]; then
|
||||
echo travis_fold:$1:$2
|
||||
if [ ! -z "${3:-}" ]; then
|
||||
echo -e "${YELLOW}$3${NOCOLOR}"
|
||||
fi
|
||||
echo
|
||||
else
|
||||
if [ $1 = "start" ]; then
|
||||
line="::group::$2"
|
||||
if [ ! -z "${3:-}" ]; then
|
||||
line="$line - ${YELLOW}$3${NOCOLOR}"
|
||||
fi
|
||||
else
|
||||
line="::endgroup::"
|
||||
fi
|
||||
echo -e "$line"
|
||||
fi
|
||||
}
|
||||
|
||||
ARCH=$(uname -m)
|
||||
Reference in New Issue
Block a user