Skip to content

Commit

Permalink
Do not use raw.githubusercontent.com urls, use redirect links
Browse files Browse the repository at this point in the history
github caches it and takes a while to fetch latest
  • Loading branch information
Akianonymus committed Oct 8, 2020
1 parent 9f44ceb commit 7a64a39
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ For custom command names, repo, shell file, etc, see advanced installation metho
To install google-drive-upload in your system, you can run the below command:

```shell
curl --compressed -s https://raw.githubusercontent.com/labbots/google-drive-upload/master/install.sh | sh -s
curl --compressed -Ls https://github.com/labbots/google-drive-upload/raw/master/install.sh | sh -s
```

and done.
Expand Down Expand Up @@ -262,7 +262,7 @@ Now, run the script and use flags according to your usecase.
E.g:

```shell
curl --compressed -s https://raw.githubusercontent.com/labbots/google-drive-upload/master/install.sh | sh -s -- -r username/reponame -p somepath -s shell_file -c command_name -B branch_name
curl --compressed -Ls https://github.com/labbots/google-drive-upload/raw/master/install.sh | sh -s -- -r username/reponame -p somepath -s shell_file -c command_name -B branch_name
```
</details>

Expand Down Expand Up @@ -857,7 +857,7 @@ There are two methods:
1. Run the installation script again with -U/--uninstall flag

```shell
curl --compressed -s https://raw.githubusercontent.com/labbots/google-drive-upload/master/install.sh | sh -s -- --uninstall
curl --compressed -Ls https://github.com/labbots/google-drive-upload/raw/master/install.sh | sh -s -- --uninstall
```

Yes, just run the installation script again with the flag and voila, it's done.
Expand Down
2 changes: 1 addition & 1 deletion bash/release/gupload
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ _update() {
_print_center "justify" "Fetching ${job} script.." "-"
declare repo="${REPO:-labbots/google-drive-upload}" type_value="${TYPE_VALUE:-latest}"
{ [[ ${TYPE:-} != branch ]] && type_value="$(_get_latest_sha release "${type_value}" "${repo}")"; } || :
if script="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo}/${type_value}/install.sh")"; then
if script="$(curl --compressed -Ls "https://github.com/${repo}/raw/${type_value}/install.sh")"; then
_clear_line 1
printf "%s\n" "${script}" | bash -s -- ${job_uninstall:-} --skip-internet-check
current_time="$(printf "%(%s)T\\n" "-1")"
Expand Down
2 changes: 1 addition & 1 deletion bash/upload.bash
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ _update() {
_print_center "justify" "Fetching ${job} script.." "-"
declare repo="${REPO:-labbots/google-drive-upload}" type_value="${TYPE_VALUE:-latest}"
{ [[ ${TYPE:-} != branch ]] && type_value="$(_get_latest_sha release "${type_value}" "${repo}")"; } || :
if script="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo}/${type_value}/install.sh")"; then
if script="$(curl --compressed -Ls "https://github.com/${repo}/raw/${type_value}/install.sh")"; then
_clear_line 1
printf "%s\n" "${script}" | bash -s -- ${job_uninstall:-} --skip-internet-check
current_time="$(printf "%(%s)T\\n" "-1")"
Expand Down
2 changes: 1 addition & 1 deletion sh/release/gupload
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ _update() {
_print_center "justify" "Fetching ${job_update} script.." "-"
repo_update="${REPO:-labbots/google-drive-upload}" type_value_update="${TYPE_VALUE:-latest}"
{ [ "${TYPE:-}" != branch ] && type_value_update="$(_get_latest_sha release "${type_value_update}" "${repo_update}")"; } || :
if script_update="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo_update}/${type_value_update}/install.sh")"; then
if script_update="$(curl --compressed -Ls "https://github.com/${repo_update}/raw/${type_value_update}/install.sh")"; then
_clear_line 1
printf "%s\n" "${script_update}" | sh -s -- ${job_uninstall:-} --skip-internet-check
current_time="$(date +'%s')"
Expand Down
2 changes: 1 addition & 1 deletion sh/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ _update() {
_print_center "justify" "Fetching ${job_update} script.." "-"
repo_update="${REPO:-labbots/google-drive-upload}" type_value_update="${TYPE_VALUE:-latest}"
{ [ "${TYPE:-}" != branch ] && type_value_update="$(_get_latest_sha release "${type_value_update}" "${repo_update}")"; } || :
if script_update="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo_update}/${type_value_update}/install.sh")"; then
if script_update="$(curl --compressed -Ls "https://github.com/${repo_update}/raw/${type_value_update}/install.sh")"; then
_clear_line 1
printf "%s\n" "${script_update}" | sh -s -- ${job_uninstall:-} --skip-internet-check
current_time="$(date +'%s')"
Expand Down

0 comments on commit 7a64a39

Please sign in to comment.