Skip to content

Commit 6ba7d27

Browse files
committed
test: Added system-schema.test.sh
1 parent 5016985 commit 6ba7d27

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎system/cuos/system-schema.test.sh‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR="$( cd -- "$( dirname -- "$( readlink -f "${BASH_SOURCE[0]}" )" )" &> /dev/null && pwd)"
4+
5+
if [[ "${UID}" != "0" ]]; then
6+
:
7+
elif command -v apk >/dev/null 2>&1; then
8+
apk update
9+
apk add jsonschema-jv
10+
elif command -v apt >/dev/null 2>&1; then
11+
apt-get update
12+
apt-get install jsonschema-jv
13+
fi
14+
15+
jv "${SCRIPT_DIR}/system-schema.json"

0 commit comments

Comments
 (0)