增加staragent全局linux命令脚本,由冰爷完成

This commit is contained in:
大石头 2022-11-26 21:06:11 +08:00
parent 3d6ded4f85
commit fd222f7f6a
1 changed files with 14 additions and 0 deletions

14
Doc/staragent.sh Normal file
View File

@ -0,0 +1,14 @@
# staragent cube.zip urls=http://*:80
# dotnet startagent.dll cube.zip urls=htts://*:80
# echo $@ # cube.zip urls=http://*:80
# echo $(pwd) # Workspace
# BASEDIR=$(dirname "$0")
# echo "$BASEDIR"
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
# echo $SCRIPTPATH
# echo
STAR_AGENT=$SCRIPTPATH"/staragent.dll" # star agent 的全路径
# echo $STAR_AGENT
ZIP_DIR=$(pwd)
dotnet $STAR_AGENT $ZIP_DIR"/"$@