Created
August 23, 2023 11:10
-
-
Save JonasGao/97aea612fbc9480f50c28c37965c3541 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROF="$1" | |
OUT="$2" | |
SERVER="$3" | |
[ "$PROF" = "" ] && echo "Missing Parameter 1: Profile name" && exit 1 | |
[ "$OUT" = "" ] && OUT="${PROF}.yaml" | |
[ "$SERVER" = "" ] && SERVER="http://127.0.0.1:25500" | |
curl -vvo "$OUT" "${SERVER}/getprofile?name=profiles/${PROF}.ini&token=password&config=config/ACL4SSR_Online_Full.ini" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment