rocky-linux / rocky-tools

MIT License
393 stars 137 forks source link

make the code retrievable by wget #193

Closed tjyang closed 1 year ago

tjyang commented 1 year ago

I found I had to browse the migrate2rocky.sh and do a copy an paste into my vt100 to get the code. Can we start to make release tar ball for wget/curl to fetch the .sh scripts ?

SuspiciousQueso commented 1 year ago

I can type "wget https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky.sh"

and the file lands locally from my terminal.

On Sat, Dec 24, 2022 at 7:45 AM T.J. Yang @.***> wrote:

I found I had to browse the migrate2rocky.sh and do a copy an paste into my vt100 to get the code. Can we start to make release tar ball for wget/curl to fetch the .sh scripts ?

— Reply to this email directly, view it on GitHub https://github.com/rocky-linux/rocky-tools/issues/193, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5PM33THINAEVU5GOEUJTWO347RANCNFSM6AAAAAATIOXRZA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tjyang commented 1 year ago

@bbaldwin

[me@rocky8t01d ~]$ wget https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky.sh
--2022-12-25 05:30:08--  https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky.sh
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘migrate2rocky.sh’

migrate2rocky.sh                       [ <=>                                                            ] 590.57K  3.02MB/s    in 0.2s

2022-12-25 05:30:09 (3.02 MB/s) - ‘migrate2rocky.sh’ saved [604747]

[me@rocky8t01d ~]$ file migrate2rocky.sh
migrate2rocky.sh: HTML document, UTF-8 Unicode text, with very long lines
[me@rocky8t01d ~]$ head  migrate2rocky.sh;date

<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark" data-a11y-animated-images="system">
  <head>
Sun Dec 25 05:30:25 CST 2022
[me@rocky8t01d ~]$
pajamian commented 1 year ago

You want the raw link: wget https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh