-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for using wget to upgrade script without git #56
Conversation
Change upgrade-self script to download itself using wget, then check a diff of the existing script with the downloaded, and copies over the new one if they differ. Then it runs the new copy with "upgrade-self" for safe-keeping
Output of wget command isn't needed.
Fixed the self-upgrade script to respect CLI args passed to apt-cyg (such as --no-check-certificate)
Thank you for a nice pull request. |
And below URL is not good for pull request.
|
Which is why I wrote that you must uncomment the line below that, which
uses the URL for the script in your repository.
…On Tue, Oct 29, 2019, 12:17 AM kou1okada ***@***.***> wrote:
And below URL is not good for pull request.
local updated_url='https://raw.githubusercontent.com/cslycord/apt-cyg/master/apt-cyg'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AC5TL7JN5FX3EYMQKDQWGM3QQ367PA5CNFSM4JFBV3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECNH3QI#issuecomment-546995649>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5TL7LF22ITG7C7CNVE27LQQ367PANCNFSM4JFBV3XQ>
.
|
I can separate those into different pull requests. No worries. For what
it's worth, I wasn't aware of the spacing changes until the pull request
showed the diff, since the editor changed it automatically.
…On Tue, Oct 29, 2019 at 12:11 AM kou1okada ***@***.***> wrote:
Thank you for a nice pull request.
But, I'm glad if you separate it to three of fixing a typo, rearranging
spaces and upgrade-self without git.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AC5TL7MEILD2RLOGBVEJ4R3QQ36IPA5CNFSM4JFBV3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECNHDPI#issuecomment-546992573>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5TL7I6VBGCBMNR7JLXCD3QQ36IPANCNFSM4JFBV3XQ>
.
|
Thank you to separate a pull request to three of below:
I'll be more happy if you drop intermediate commits each of final commits. It can be achieved by interactive rebase with following steps: Step 1: Start interactive rebase for last four commits.
Step 2: Edit commit
to
and save it. Step 3: Edit commit message as
and save it. |
It'll changes commit hash, so you should use |
I believe the intermediate commits should be fixed now.
…On Tue, Oct 29, 2019 at 10:47 AM kou1okada ***@***.***> wrote:
It'll changes commit hash, so you should use git push with -f option.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AC5TL7KQIU7642LQUKQFS2DQQ6IZPA5CNFSM4JFBV3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECO6OTI#issuecomment-547219277>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5TL7LZULUJTCNFNIE7NLDQQ6IZPANCNFSM4JFBV3XQ>
.
|
If not, I see that pushing the changes to the commits created new branches
of "origin/name" and I'm not sure why.
…On Tue, Oct 29, 2019 at 2:31 PM Chris Slycord ***@***.***> wrote:
I believe the intermediate commits should be fixed now.
On Tue, Oct 29, 2019 at 10:47 AM kou1okada ***@***.***>
wrote:
> It'll changes commit hash, so you should use git push with -f option.
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <#56?email_source=notifications&email_token=AC5TL7KQIU7642LQUKQFS2DQQ6IZPA5CNFSM4JFBV3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECO6OTI#issuecomment-547219277>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AC5TL7LZULUJTCNFNIE7NLDQQ6IZPANCNFSM4JFBV3XQ>
> .
>
|
Check your current working branch with:
Maybe it is not "name" but "origin/name". And your "origin/wget" seems to be not rebased correctly. |
It should be working now. I've got spacing, typo, and wget rebased.
…On Wed, Oct 30, 2019 at 8:33 AM kou1okada ***@***.***> wrote:
Check your current working branch with:
git log --all --graph --color --pretty=fuller --decorate=full --summary
Maybe it is not "name" but "origin/name".
And your "origin/wget
<https://github.com/cslycord/apt-cyg/tree/origin/wget>" seems to be not
rebased correctly.
It has typo, spacing and wget.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AC5TL7LMI2UKCJG26U5O7VLQRDB3HA5CNFSM4JFBV3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECSNWYA#issuecomment-547674976>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5TL7IBQ4YXL2OC6ZGKMBTQRDB3HANCNFSM4JFBV3XQ>
.
|
Something wrong with your rebase. I prepared three rebased branches to you.
Please do |
Should be done.
…On Wed, Oct 30, 2019 at 6:02 PM kou1okada ***@***.***> wrote:
Something wrong with your rebase.
[image: image]
<https://user-images.githubusercontent.com/1631846/67842763-23e0f400-fb3e-11e9-8293-cf1b8de4283d.png>
I prepared three rebased branches to you.
- https://github.com/kou1okada/apt-cyg/tree/cslycord-wget-rebased
- https://github.com/kou1okada/apt-cyg/tree/cslycord-typo-rebased
- https://github.com/kou1okada/apt-cyg/tree/cslycord-spacing-rebased
Please do git reset --hard <above-branch> for your branches, and then do git
push -f each for them.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AC5TL7JYYX326THGECZMNJDQRFERDA5CNFSM4JFBV3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECTMVGY#issuecomment-547801755>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5TL7I2PJ27AB7RWHNVCULQRFERDANCNFSM4JFBV3XQ>
.
|
Thank you. |
Allows for upgrading script using wget to the raw direct location of the script at github.
Obviously, if you accept the change, it would need to have the URL uncommented to use your repo's location.
Other than that, shellcheck noticed the misspelling of the THRESHOLD_OF_WARNING variable and my editor automatically removed the unneeded tabs on empty lines and the unneeded spaces on the ends of a few lines here and there.