Skip to content

Commit 7a64a39

Browse files
committed
Do not use raw.githubusercontent.com urls, use redirect links
github caches it and takes a while to fetch latest
1 parent 9f44ceb commit 7a64a39

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ For custom command names, repo, shell file, etc, see advanced installation metho
164164
To install google-drive-upload in your system, you can run the below command:
165165

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

170170
and done.
@@ -262,7 +262,7 @@ Now, run the script and use flags according to your usecase.
262262
E.g:
263263

264264
```shell
265-
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
265+
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
266266
```
267267
</details>
268268

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

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

863863
Yes, just run the installation script again with the flag and voila, it's done.

bash/release/gupload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ _update() {
988988
_print_center "justify" "Fetching ${job} script.." "-"
989989
declare repo="${REPO:-labbots/google-drive-upload}" type_value="${TYPE_VALUE:-latest}"
990990
{ [[ ${TYPE:-} != branch ]] && type_value="$(_get_latest_sha release "${type_value}" "${repo}")"; } || :
991-
if script="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo}/${type_value}/install.sh")"; then
991+
if script="$(curl --compressed -Ls "https://github.com/${repo}/raw/${type_value}/install.sh")"; then
992992
_clear_line 1
993993
printf "%s\n" "${script}" | bash -s -- ${job_uninstall:-} --skip-internet-check
994994
current_time="$(printf "%(%s)T\\n" "-1")"

bash/upload.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ _update() {
8484
_print_center "justify" "Fetching ${job} script.." "-"
8585
declare repo="${REPO:-labbots/google-drive-upload}" type_value="${TYPE_VALUE:-latest}"
8686
{ [[ ${TYPE:-} != branch ]] && type_value="$(_get_latest_sha release "${type_value}" "${repo}")"; } || :
87-
if script="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo}/${type_value}/install.sh")"; then
87+
if script="$(curl --compressed -Ls "https://github.com/${repo}/raw/${type_value}/install.sh")"; then
8888
_clear_line 1
8989
printf "%s\n" "${script}" | bash -s -- ${job_uninstall:-} --skip-internet-check
9090
current_time="$(printf "%(%s)T\\n" "-1")"

sh/release/gupload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ _update() {
971971
_print_center "justify" "Fetching ${job_update} script.." "-"
972972
repo_update="${REPO:-labbots/google-drive-upload}" type_value_update="${TYPE_VALUE:-latest}"
973973
{ [ "${TYPE:-}" != branch ] && type_value_update="$(_get_latest_sha release "${type_value_update}" "${repo_update}")"; } || :
974-
if script_update="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo_update}/${type_value_update}/install.sh")"; then
974+
if script_update="$(curl --compressed -Ls "https://github.com/${repo_update}/raw/${type_value_update}/install.sh")"; then
975975
_clear_line 1
976976
printf "%s\n" "${script_update}" | sh -s -- ${job_uninstall:-} --skip-internet-check
977977
current_time="$(date +'%s')"

sh/upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ _update() {
8484
_print_center "justify" "Fetching ${job_update} script.." "-"
8585
repo_update="${REPO:-labbots/google-drive-upload}" type_value_update="${TYPE_VALUE:-latest}"
8686
{ [ "${TYPE:-}" != branch ] && type_value_update="$(_get_latest_sha release "${type_value_update}" "${repo_update}")"; } || :
87-
if script_update="$(curl --compressed -Ls "https://raw.githubusercontent.com/${repo_update}/${type_value_update}/install.sh")"; then
87+
if script_update="$(curl --compressed -Ls "https://github.com/${repo_update}/raw/${type_value_update}/install.sh")"; then
8888
_clear_line 1
8989
printf "%s\n" "${script_update}" | sh -s -- ${job_uninstall:-} --skip-internet-check
9090
current_time="$(date +'%s')"

0 commit comments

Comments
 (0)