xray-core: add the test script for action checking
authorTianling Shen <cnsztl@project-openwrt.eu.org>
Fri, 12 Feb 2021 17:09:19 +0000 (01:09 +0800)
committerTianling Shen <cnsztl@project-openwrt.eu.org>
Sat, 13 Feb 2021 04:20:22 +0000 (12:20 +0800)
Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
net/xray-core/test.sh [new file with mode: 0644]

diff --git a/net/xray-core/test.sh b/net/xray-core/test.sh
new file mode 100644 (file)
index 0000000..8fcce26
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+case "$1" in
+       "xray-core")
+               xray version 2>&1 | grep "${2#*v}"
+               ;;
+esac