Add proxy flag (#55)

* Add proxy flag

* Fix getops
pull/60/head
AlexPresso 4 years ago committed by GitHub
parent 2048e3ccca
commit 74df210574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,8 @@ Basic command:
With options:
`curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash -s -- <flags>`
| Flags | Required | Description | Default |
|-------|----------|---------------------------------------------------------------------------------|---------|
| -a | No | Action flag: choose between `patch` or `unpatch` ; example: `-a patch` | patch |
| -b | No | Branch flag: allows you to choose the wrapper branch to use ; example `-b main` | main |
| Flags | Required | Description | Default |
|-------|----------|-------------------------------------------------------------------------------------------|--------------------|
| -a | No | Action flag: choose between `patch` or `unpatch` ; example: `-a patch` | patch |
| -b | No | Branch flag: allows you to choose the wrapper branch to use ; example `-b main` | main |
| -p | No | Proxy flag: allows you to use a proxy to connect to github ; example `-p http://my-proxy` | https://github.com |

@ -156,11 +156,12 @@ function unpatch() {
root_check
check_dependencies
while getopts a:b: flag; do
while getopts a:b:p: flag; do
case "${flag}" in
a) action=${OPTARG};;
b) branch=${OPTARG};;
*) echo "usage: $0 [-a patch|unpatch] [-b branch]" >&2; exit 1;;
p) repo_base_url="${OPTARG}/AlexPresso/VideoStation-FFMPEG-Patcher";;
*) echo "usage: $0 [-a patch|unpatch] [-b branch] [-p http://proxy]" >&2; exit 1;;
esac
done

Loading…
Cancel
Save